├── .gitignore ├── README.md ├── index.html ├── main.py ├── scraped_data.json ├── script.js └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | /venv 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Amazon URL Scraper 2 | 3 | ## Description 4 | 5 | This Python script scrapes Amazon product details like title, image source, fee, and rating. It uses the Playwright library for web scraping and asyncio for asynchronous operations. It also uses Bright Data for more efficient data collection. 6 | 7 | ## Table of Contents 8 | 9 | - [Installation](#installation) 10 | - [Usage](#usage) 11 | - [Configuration](#configuration) 12 | - [License](#license) 13 | 14 | ## Installation 15 | 16 | 1. Clone this repository: 17 | 18 | ```bash 19 | git clone https://github.com/yourusername/yourrepository.git 20 | ``` 21 | 22 | 1. Install the required Python packages: 23 | 24 | ```bash 25 | git clone https://github.com/yourusername/yourrepository.git 26 | ``` 27 | 28 | 1. Install browser binaries required for Playwright: 29 | 30 | ```bash 31 | playwright install 32 | ``` 33 | 34 | 35 | ## Usage 36 | 37 | 38 | 1. Add your Bright Data key to the 'SBR_WS_CDP' variable in the script: 39 | 40 | ```python 41 | SBR_WS_CDP = "ENTER YOUR BRIGHT DATA KEY HERE" 42 | ``` 43 | 44 | 1. Run the script: 45 | 46 | ```bash 47 | python your_script_name.py 48 | ``` 49 | 50 | 1. Install browser binaries required for Playwright: 51 | 52 | ```bash 53 | playwright install 54 | ``` 55 | 56 | The script will automatically start scraping data from Amazon and save it to scraped_data.json. 57 | 58 | ## Configuration 59 | 60 | To customize the scraping behavior, you can modify the following variables directly in the script: 61 | 62 | - `SBR_WS_CDP`: Enter your Bright Data key here to enable more efficient data collection. 63 | 64 | - `page_num`: Change the range value in the `for page_num in range(1, 6):` loop to set the number of Amazon search result pages you want to scrape. The default value is set to scrape 5 pages. 65 | 66 | By changing these variables, you can adapt the script to your specific needs. 67 | 68 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Keyboards Scraped 8 | 9 | 10 | 11 | 12 |
13 |

Keyboards Scraped with Playwright and Bright Data

14 |
15 |
16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | from playwright.sync_api import sync_playwright 3 | import json 4 | from urllib.parse import unquote 5 | 6 | SBR_WS_CDP = "ENTER YOUR BRIGHT DATA KEY HERE" 7 | 8 | def extract_url(url): 9 | if 'click?' in url: 10 | start_index = url.find('url=%2F') + len('url=%2F') 11 | end_index = url.find('%2Fref', start_index) 12 | extract_url = url[start_index : end_index] 13 | final_url = 'https://www.amazon.com/'+ unquote(extract_url) 14 | return final_url 15 | return url 16 | 17 | def scrape_urls(page): 18 | # page.wait_for_selector(".a-size-mini.a-spacing-none.a-color-base.s-line-clamp-2 > a",) 19 | urls = page.eval_on_selector_all(".a-size-mini.a-spacing-none.a-color-base.s-line-clamp-2 > a", 20 | "elements => elements.map(e => e.href)") 21 | return urls 22 | 23 | def scrape_page_data(page, url): 24 | 25 | try: 26 | print(f'\nScraping the url {url}') 27 | page.goto(url, timeout=120000) 28 | page.wait_for_selector('#productTitle', timeout=30000 ) 29 | title = page.eval_on_selector("#productTitle", 'el => el.textContent') 30 | 31 | page.wait_for_selector('#imgTagWrapperId', timeout=30000) 32 | img_source = page.eval_on_selector("#imgTagWrapperId > img", 'el => el.src') 33 | 34 | page.wait_for_selector('.a-price.aok-align-center.reinventPricePriceToPayMargin.priceToPay > .a-offscreen', timeout=120000) 35 | fee = page.eval_on_selector(".a-price.aok-align-center.reinventPricePriceToPayMargin.priceToPay > .a-offscreen", 36 | 'el => el.textContent') 37 | 38 | rating = page.eval_on_selector("#acrPopover .a-size-base.a-color-base", 'el => el.textContent') 39 | 40 | scraped_data = { 41 | 'title': title.strip(), 42 | 'url': url, 43 | 'img_source': img_source, 44 | 'fee': fee, 45 | 'rating': rating.strip() 46 | } 47 | return scraped_data 48 | 49 | except Exception as e: 50 | print(f'An error occurred scraping the url {url[:50]}...: ${str(e)[:100]}...') 51 | return {} 52 | 53 | def main(): 54 | 55 | scraped_data_file = 'scraped_data.json' 56 | scraped_data_all = [] 57 | with sync_playwright() as pw: 58 | print('connecting') 59 | 60 | for page_num in range(1,6): 61 | browser = pw.chromium.connect_over_cdp(SBR_WS_CDP) 62 | page = browser.new_page() 63 | 64 | try: 65 | print(f"Navigating to the page {page_num}") 66 | page.goto(f"https://www.amazon.com/s?k=keyboard&page={page_num}", timeout=120000) 67 | print(f'On page {page_num}') 68 | except Exception as e: 69 | print(f'Exception occurred {str(e)[:50]}') 70 | 71 | urls = scrape_urls(page) 72 | 73 | print(f'Found {len(urls)} urls on the page {page_num}') 74 | data = [] 75 | count = 0 76 | 77 | for url in urls: 78 | session_browser = pw.chromium.connect_over_cdp(SBR_WS_CDP) 79 | session_page = session_browser.new_page() 80 | 81 | 82 | scrapped_data = scrape_page_data(session_page, extract_url(url)) 83 | 84 | if scrapped_data: 85 | data.append(scrapped_data) 86 | session_browser.close() 87 | print(scrapped_data) 88 | count += 1 89 | # if(count == 6): 90 | # break 91 | 92 | 93 | print('\n\n\n\ndata data data') 94 | print(data) 95 | scraped_data_all.extend(data) 96 | 97 | browser.close() 98 | 99 | print('\n\n\n\n\n\n\nall data') 100 | print(scraped_data_all) 101 | 102 | with open(scraped_data_file, 'w') as file: 103 | print('Writing the file') 104 | json.dump(scraped_data_all, file) 105 | 106 | 107 | main() 108 | -------------------------------------------------------------------------------- /scraped_data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "title": "MageGee Portable 60% Mechanical Gaming Keyboard, MK-Box LED Backlit Compact 68 Keys Mini Wired Office Keyboard with Red Switch for Windows Laptop PC Mac - Black/Grey", 4 | "url": "https://www.amazon.com/Portable-Mechanical-Keyboard-MageGee-Backlit/dp/B098LG3N6R/ref=sr_1_1?keywords=keyboard&qid=1693133658&sr=8-1", 5 | "img_source": "https://m.media-amazon.com/images/I/618zZ7u3sUL._AC_SX679_.jpg", 6 | "fee": "$29.99", 7 | "rating": "4.4" 8 | }, 9 | { 10 | "title": "ZDawnn Typewriter Style Mechanical Gaming Keyboard.LED Rainbow Backlit,104 Keys,Retro Punk Round Keycaps with Brown Switch,Wired with USB-A,for PC/Mac/Laptop", 11 | "url": "https://www.amazon.com/ZDawnn-Typewriter-Mechanical-Keyboard-LED-Rainbow/dp/B0B148GKZS/ref=sr_1_2?keywords=keyboard&qid=1693133658&sr=8-2", 12 | "img_source": "https://m.media-amazon.com/images/I/71peVQOQxGL._AC_SX679_.jpg", 13 | "fee": "$25.99", 14 | "rating": "4.5" 15 | }, 16 | { 17 | "title": "MOFII Wireless Keyboard and Mouse Combo,2.4GHz Retro Full-Size Keyboard with Number Pad and Cute Mouse for Computer PC Desktops Laptop WindowsxP/7/8/10(Milk Tea Colorful-B)", 18 | "url": "https://www.amazon.com/MOFII-Wireless-Full-Size-WindowsxP-Colorful-B/dp/B0B6G2XWTL/ref=sr_1_3?keywords=keyboard&qid=1693133658&sr=8-3", 19 | "img_source": "https://m.media-amazon.com/images/I/715mkYSaJLL._AC_SX425_.jpg", 20 | "fee": "$43.99", 21 | "rating": "4.4" 22 | }, 23 | { 24 | "title": "Logitech MX Keys S Wireless Keyboard, Low Profile, Quiet Typing, Backlighting, Bluetooth, USB C Rechargeable for Windows PC, Linux, Chrome, Mac - Graphite - With Free Adobe Creative Cloud Subscription", 25 | "url": "https://www.amazon.com/Logitech-Programmable-Backlighting-Bluetooth-Rechargeable/dp/B0BKW3LB2B/ref=sxin_16_cpf_saw-CPFPecos-dsk-lmlk-asin?content-id=amzn1.sym.5fd35f2d-c1de-4678-ba9f-54569b4fdcb7%3Aamzn1.sym.5fd35f2d-c1de-4678-ba9f-54569b4fdcb7&cv_ct_cx=keyboard&keywords=keyboard&pd_rd_i=B0BKW3LB2B&pd_rd_r=75984be8-c5ec-4c73-98c9-ddac1a6a442c&pd_rd_w=lWrS0&pd_rd_wg=G3THI&pf_rd_p=5fd35f2d-c1de-4678-ba9f-54569b4fdcb7&pf_rd_r=Y2M89BZBWJ002021C5FD&qid=1693133658&sbo=RZvfv%2F%2FHxDF%2BO5021pAnSA%3D%3D&sr=1-1-88bb4e7b-fb79-43dc-9dec-6da196f88672", 26 | "img_source": "https://m.media-amazon.com/images/I/71skZeAyPuL._AC_SX425_.jpg", 27 | "fee": "$109.19", 28 | "rating": "4.7" 29 | }, 30 | { 31 | "title": "Logitech K120 Keyboard - Cable Connectivity - USB Interface", 32 | "url": "https://www.amazon.com/Logitech-K120-Keyboard-Connectivity-Interface/dp/B0056C7W1C/ref=sxin_16_cpf_saw-CPFPecos-dsk-lmlk-asin?content-id=amzn1.sym.5fd35f2d-c1de-4678-ba9f-54569b4fdcb7%3Aamzn1.sym.5fd35f2d-c1de-4678-ba9f-54569b4fdcb7&cv_ct_cx=keyboard&keywords=keyboard&pd_rd_i=B0056C7W1C&pd_rd_r=75984be8-c5ec-4c73-98c9-ddac1a6a442c&pd_rd_w=lWrS0&pd_rd_wg=G3THI&pf_rd_p=5fd35f2d-c1de-4678-ba9f-54569b4fdcb7&pf_rd_r=Y2M89BZBWJ002021C5FD&qid=1693133658&sbo=RZvfv%2F%2FHxDF%2BO5021pAnSA%3D%3D&sr=1-2-88bb4e7b-fb79-43dc-9dec-6da196f88672", 33 | "img_source": "https://m.media-amazon.com/images/I/51CrC578vPL._AC_SX425_.jpg", 34 | "fee": "$22.99", 35 | "rating": "4.7" 36 | }, 37 | { 38 | "title": "Dacoity Gaming Keyboard, 104 Keys All-Metal Panel, Rainbow LED Backlit Quiet Computer Keyboard, Wrist Rest, Multimedia Keys, Anti-ghosting Keys, Waterproof Light Up USB Wired Keyboard for PC Mac Xbox", 39 | "url": "https://www.amazon.com/All-Metal-Dacoity-Multimedia-Anti-ghosting-Waterproof/dp/B09TZWLFLY/ref=sr_1_4?keywords=keyboard&qid=1693133658&sr=8-4", 40 | "img_source": "https://m.media-amazon.com/images/I/71ud68+jS-L._AC_SX679_.jpg", 41 | "fee": "$26.99", 42 | "rating": "4.5" 43 | }, 44 | { 45 | "title": "RK ROYAL KLUDGE M75 Mechanical Keyboard, 2.4GHz Wireless/Bluetooth/USB-C Wired Gaming Keyboard 75% Layout 81 Keys with OLED Smart Display & Knob, RGB Backlight Hot-Swappable Brown Switch", 46 | "url": "https://www.amazon.com/RK-ROYAL-KLUDGE-Mechanical-Hot-Swappable/dp/B0BRZ2GB36/ref=sr_1_5?keywords=keyboard&qid=1693133658&sr=8-5", 47 | "img_source": "https://m.media-amazon.com/images/I/61f2zxfQGUL._AC_SX679_.jpg", 48 | "fee": "$119.99", 49 | "rating": "4.6" 50 | }, 51 | { 52 | "title": "Razer Cynosa V2 Gaming Keyboard: Customizable Chroma RGB Lighting - Individually Backlit Keys - Spill-Resistant Design - Programmable Macro Functionality - Dedicated Media Keys", 53 | "url": "https://www.amazon.com/Razer-Cynosa-Gaming-Keyboard-Spill-Resistant/dp/B086PBD1BV/ref=sr_1_6?keywords=keyboard&qid=1693133658&sr=8-6", 54 | "img_source": "https://m.media-amazon.com/images/I/71lYCCMAmwL._AC_SX679_.jpg", 55 | "fee": "$49.99", 56 | "rating": "4.6" 57 | }, 58 | { 59 | "title": "NPET K10 Wired Gaming Keyboard, LED Backlit, Spill-Resistant Design, Multimedia Keys, Quiet Silent USB Membrane Keyboard for Desktop, Computer, PC (Black)", 60 | "url": "https://www.amazon.com/NPET-Floating-Keyboard-Mechanical-Illuminated/dp/B01ALLT2W4/ref=sr_1_7?keywords=keyboard&qid=1693133658&sr=8-7", 61 | "img_source": "https://m.media-amazon.com/images/I/7113k0qNblL._AC_SX679_.jpg", 62 | "fee": "$21.99", 63 | "rating": "4.5" 64 | }, 65 | { 66 | "title": "Logitech MX Keys S Wireless Keyboard, Low Profile, Quiet Typing, Backlighting, Bluetooth, USB C Rechargeable for Windows PC, Linux, Chrome, Mac - Graphite - With Free Adobe Creative Cloud Subscription", 67 | "url": "https://www.amazon.com/Logitech-Programmable-Backlighting-Bluetooth-Rechargeable/dp/B0BKW3LB2B/ref=sr_1_8?keywords=keyboard&qid=1693133658&sr=8-8", 68 | "img_source": "https://m.media-amazon.com/images/I/71skZeAyPuL._AC_SX425_.jpg", 69 | "fee": "$109.19", 70 | "rating": "4.7" 71 | }, 72 | { 73 | "title": "Wireless Keyboard and Mouse Ultra Slim Combo, TopMate 2.4G Silent Compact USB Mouse and Scissor Switch Keyboard Set with Cover, 2 AA and 2 AAA Batteries, for PC/Laptop/Windows/Mac - White", 74 | "url": "https://www.amazon.com/TopMate-Wireless-Keyboard-Designed-Office/dp/B06XHY8J7M/ref=sr_1_9?keywords=keyboard&qid=1693133658&sr=8-9", 75 | "img_source": "https://m.media-amazon.com/images/I/71wyySRjQyL._AC_SX425_.jpg", 76 | "fee": "$34.77", 77 | "rating": "4.3" 78 | }, 79 | { 80 | "title": "Wireless Keyboard and Mouse Combo, MARVO 2.4G Ergonomic Wireless Computer Keyboard with Phone Tablet Holder, Silent Mouse with 6 Button, Compatible with MacBook, Windows (Black)", 81 | "url": "https://www.amazon.com/Wireless-Keyboard-MARVO-Ergonomic-Compatible/dp/B09P33RWFJ/ref=sr_1_10?keywords=keyboard&qid=1693133658&sr=8-10", 82 | "img_source": "https://m.media-amazon.com/images/I/61L3R6nVQeL._AC_SX425_.jpg", 83 | "fee": "$24.56", 84 | "rating": "4.3" 85 | }, 86 | { 87 | "title": "Camiysn Typewriter Style Mechanical Gaming Keyboard, Black Retro Punk Gaming Keyboard with RGB Backlit, 104 Keys Blue Switch Wired Cute Keyboard, Round Keycaps for Windows/Mac/PC", 88 | "url": "https://www.amazon.com/Typewriter-Mechanical-Keyboard-Backlit-Keycaps/dp/B09DK9CSTQ/ref=sr_1_11?keywords=keyboard&qid=1693133658&sr=8-11", 89 | "img_source": "https://m.media-amazon.com/images/I/8196nDEwHnL._AC_SX679_.jpg", 90 | "fee": "$36.99", 91 | "rating": "4.5" 92 | }, 93 | { 94 | "title": "Computer Keyboard Wired, Plug Play USB Keyboard, Low Profile Chiclet Keys, Large Number Pad, Caps Indicators, Foldable Stands, Spill-Resistant, Anti-Wear Letters for Windows Mac PC Laptop, Full Size", 95 | "url": "https://www.amazon.com/Computer-Keyboard-Indicators-Spill-Resistant-Anti-Wear/dp/B09NLS9TK4/ref=sr_1_12?keywords=keyboard&qid=1693133658&sr=8-12", 96 | "img_source": "https://m.media-amazon.com/images/I/61s6ZL3Vg3L._AC_SX679_.jpg", 97 | "fee": "$14.99", 98 | "rating": "4.4" 99 | }, 100 | { 101 | "title": "CHONCHOW LED Keyboard and Mouse, 104 Keys Rainbow Backlit Keyboard and 7 Color RGB Mouse, White Gaming Keyboard and Mouse Combo for PC Laptop Xbox PS4 Gamers and Work", 102 | "url": "https://www.amazon.com/CHONCHOW-Keyboard-Rainbow-Backlit-Gaming/dp/B09BFSKDHT/ref=sr_1_13?keywords=keyboard&qid=1693133658&sr=8-13", 103 | "img_source": "https://m.media-amazon.com/images/I/61PUrOCDZWL._AC_SX679_.jpg", 104 | "fee": "$19.99", 105 | "rating": "4.3" 106 | }, 107 | { 108 | "title": "RK ROYAL KLUDGE H81 Wireless Mechanical Keyboard, 75% Knob Control Triple Mode BT5.1/2.4Ghz/USB-C Gaming Keyboard Gasket Mount with RGB Backlit 3750mAH Battery Hot Swappable Brown Switch", 109 | "url": "https://www.amazon.com/RK-ROYAL-KLUDGE-H81-Mechanical/dp/B0C2C7171C/ref=sr_1_14?keywords=keyboard&qid=1693133658&sr=8-14", 110 | "img_source": "https://m.media-amazon.com/images/I/61QxsX56E1L._AC_SX679_.jpg", 111 | "fee": "$84.99", 112 | "rating": "4.7" 113 | }, 114 | { 115 | "title": "MageGee 75% Mechanical Gaming Keyboard with Red Switch, LED Blue Backlit Keyboard, 87 Keys Compact TKL Wired Computer Keyboard for Windows Laptop PC Gamer - White/Blue", 116 | "url": "https://www.amazon.com/Mechanical-Keyboard-MageGee-Backlit-Computer/dp/B09MDZY68V/ref=sr_1_15?keywords=keyboard&qid=1693133658&sr=8-15", 117 | "img_source": "https://m.media-amazon.com/images/I/610hMWJg7QL._AC_SX679_.jpg", 118 | "fee": "$23.99", 119 | "rating": "4.4" 120 | }, 121 | { 122 | "title": "Redragon K556 SE RGB LED Backlit Wired Mechanical Gaming Keyboard, Aluminum Base, 104 Keys Upgraded Socket, 3.5mm Sound Absorbing Foams, Hot-Swap Linear Quiet Red Switch, Gradient Blue", 123 | "url": "https://www.amazon.com/Redragon-K556-SE-Mechanical-Absorbing/dp/B0BXW81W3W/ref=sr_1_16?keywords=keyboard&qid=1693133658&sr=8-16", 124 | "img_source": "https://m.media-amazon.com/images/I/61AFbJi-e9L._AC_SX679_.jpg", 125 | "fee": "$69.99", 126 | "rating": "4.8" 127 | }, 128 | { 129 | "title": "RK ROYAL KLUDGE S108 Typewriter Style Retro Mechanical Gaming Keyboard Wired with True RGB Backlit Collapsible Wrist Rest 108-Key Blue Switches Round Keycap - Black", 130 | "url": "https://www.amazon.com/RK-ROYAL-KLUDGE-Typewriter-Collapsible/dp/B07XVCP7F5/ref=sr_1_17?keywords=keyboard&qid=1693133741&sr=8-17", 131 | "img_source": "https://m.media-amazon.com/images/I/71i3GXz1W1L._AC_SX679_.jpg", 132 | "fee": "$56.94", 133 | "rating": "4.6" 134 | }, 135 | { 136 | "title": "Amazon Basics Low-Profile Wired USB Keyboard with US Layout (QWERTY), Matte Black", 137 | "url": "https://www.amazon.com/AmazonBasics-Matte-Keyboard-QWERTY-Layout/dp/B07WJ5D3H4/ref=sr_1_18?keywords=keyboard&qid=1693133741&sr=8-18", 138 | "img_source": "https://m.media-amazon.com/images/I/81cg9myC9kL._AC_SX679_.jpg", 139 | "fee": "$17.10", 140 | "rating": "4.5" 141 | }, 142 | { 143 | "title": "Wireless Bluetooth Keyboard Full Size, Quiet Slim Multi-Device USB Rechargeable Cordless QWERTY Keyboard with Number Pad, Low Profile Silent Flat Noiseless Universal Keyboard for Computer/Mac/iMac/IOS", 144 | "url": "https://www.amazon.com/Bluetooth-Multi-Device-Rechargeable-Noiseless-Universal/dp/B0BKT1MS2P/ref=sr_1_19?keywords=keyboard&qid=1693133741&sr=8-19", 145 | "img_source": "https://m.media-amazon.com/images/I/61EkTzgwx+L._AC_SX679_.jpg", 146 | "fee": "$39.99", 147 | "rating": "4.3" 148 | }, 149 | { 150 | "title": "MageGee Mechanical Gaming Keyboard MK-Armor LED Rainbow Backlit and Wired USB 104 Keys Keyboard with Blue Switches, for Windows PC Laptop Game(White&Black)\u2026\u2026\u2026", 151 | "url": "https://www.amazon.com/MageGee-Mechanical-Keyboard-MK-Armor-Switches/dp/B0C3TT7T67/ref=sr_1_20?keywords=keyboard&qid=1693133741&sr=8-20", 152 | "img_source": "https://m.media-amazon.com/images/I/61k90HEbwtL._AC_SX679_.jpg", 153 | "fee": "$29.59", 154 | "rating": "4.4" 155 | }, 156 | { 157 | "title": "Logitech G PRO Mechanical Gaming Keyboard, Ultra Portable Tenkeyless Design, Detachable Micro USB Cable, 16.8 Million Color LIGHTSYNC RGB Backlit Keys", 158 | "url": "https://www.amazon.com/Logitech-Mechanical-Tenkeyless-Detachable-LIGHTSYNC/dp/B07QQB9VCV/ref=sr_1_21?keywords=keyboard&qid=1693133741&sr=8-21", 159 | "img_source": "https://m.media-amazon.com/images/I/51K1mE5uVyL._AC_SX679_.jpg", 160 | "fee": "$72.00", 161 | "rating": "4.7" 162 | }, 163 | { 164 | "title": "Wireless Keyboard with 7 Colored Backlits, Wrist Rest, Phone Holder, Rechargeable Ergonomic Computer Keyboard with Silent Keys, Full Size Lighted Keyboard for Windows, MacBook, PC, Laptop (Black)", 165 | "url": "https://www.amazon.com/Trueque-Wireless-Keyboard-Rechargeable-Ergonomic/dp/B0BNPBTJDP/ref=sr_1_22?keywords=keyboard&qid=1693133741&sr=8-22", 166 | "img_source": "https://m.media-amazon.com/images/I/711ghPv1T1L._AC_SX679_.jpg", 167 | "fee": "$39.99", 168 | "rating": "4.3" 169 | }, 170 | { 171 | "title": "Arteck 2.4G Wireless Keyboard Stainless Steel Ultra Slim Full Size Keyboard with Numeric Keypad for Computer/Desktop/PC/Laptop/Surface/Smart TV and Windows 10/8/ 7 Built in Rechargeable Battery", 172 | "url": "https://www.amazon.com/Arteck-Wireless-Keyboard-Stainless-Rechargeable/dp/B07D34L57F/ref=sr_1_23?keywords=keyboard&qid=1693133741&sr=8-23", 173 | "img_source": "https://m.media-amazon.com/images/I/615wODNPYJL._AC_SX425_.jpg", 174 | "fee": "$27.99", 175 | "rating": "4.4" 176 | }, 177 | { 178 | "title": "Razer BlackWidow V3 Mini HyperSpeed 65% Wireless Mechanical Gaming Keyboard: HyperSpeed Wireless Technology -Yellow Mechanical Switches- Linear & Silent - Phantom Pudding Keycaps - 200Hrs Battery Life", 179 | "url": "https://www.amazon.com/Razer-BlackWidow-HyperSpeed-Wireless-Mechanical/dp/B094L5MT97/ref=sr_1_24?keywords=keyboard&qid=1693133741&sr=8-24", 180 | "img_source": "https://m.media-amazon.com/images/I/711y8vC4+nL._AC_SX679_.jpg", 181 | "fee": "$119.99", 182 | "rating": "4.5" 183 | }, 184 | { 185 | "title": "Redragon K556 RGB LED Backlit Wired Mechanical Gaming Keyboard, 104 Keys Hot-Swap Mechanical Keyboard w/Aluminum Base, Upgraded Socket and Noise Absorbing Foams, Quiet Linear Red Switch", 186 | "url": "https://www.amazon.com/Redragon-K556-Mechanical-Keyboard-Aluminum/dp/B08G4H448Q/ref=sr_1_25?keywords=keyboard&qid=1693133741&sr=8-25", 187 | "img_source": "https://m.media-amazon.com/images/I/71KBeJ1nz6L._AC_SX679_.jpg", 188 | "fee": "$59.99", 189 | "rating": "4.6" 190 | }, 191 | { 192 | "title": "Corsair K55 PRO LITE RGB Wired Membrane Gaming Keyboard (5-Zone Dynamic RGB Backlighting, Six Macro Keys with Stream Deck Integration, IP42 Dust and Spill Resistant, Dedicated Media Keys) Black", 193 | "url": "https://www.amazon.com/Corsair-Backlighting-Integration-Resistant-Dedicated/dp/B09ZVLBP4M/ref=sr_1_26?keywords=keyboard&qid=1693133741&sr=8-26", 194 | "img_source": "https://m.media-amazon.com/images/I/61E5W37UANL._AC_SX679_.jpg", 195 | "fee": "$29.99", 196 | "rating": "4.6" 197 | }, 198 | { 199 | "title": "Taeeiancd Typewriter Keyboard 104-key Retro Punk Gaming Keyboard LED White Backlit Cute Keyboard with Wired USB Suitable for PC/Win/Mac/Laptop (Green A)", 200 | "url": "https://www.amazon.com/Taeeiancd-Typewriter-Keyboard-104-key-Suitable/dp/B0BJNSDMND/ref=sr_1_27?keywords=keyboard&qid=1693133741&sr=8-27", 201 | "img_source": "https://m.media-amazon.com/images/I/616kLSCW38L._AC_SX679_.jpg", 202 | "fee": "$20.99", 203 | "rating": "4.5" 204 | }, 205 | { 206 | "title": "RedThunder K10 Wireless Gaming Keyboard and Mouse Combo, LED Backlit Rechargeable 3800mAh Battery, Mechanical Feel Anti-ghosting Keyboard + 7D 3200DPI Mice for PC Gamer (Black)", 207 | "url": "https://www.amazon.com/RedThunder-Wireless-Rechargeable-Mechanical-Anti-ghosting/dp/B09BR46F63/ref=sr_1_28?keywords=keyboard&qid=1693133741&sr=8-28", 208 | "img_source": "https://m.media-amazon.com/images/I/717IaZVyToL._AC_SX425_.jpg", 209 | "fee": "$52.99", 210 | "rating": "4.0" 211 | }, 212 | { 213 | "title": "NPET K10 Wired Gaming Keyboard, RGB Backlit, Spill-Resistant Design, Multimedia Keys, Quiet Silent USB Membrane Keyboard for Desktop, Computer, PC (Purple)", 214 | "url": "https://www.amazon.com/NPET-K10-Water-Resistant-Mechanical-Ultra-Slim/dp/B098JVBM6W/ref=sr_1_29?keywords=keyboard&qid=1693133741&sr=8-29", 215 | "img_source": "https://m.media-amazon.com/images/I/61k5fFRUvHL._AC_SX679_.jpg", 216 | "fee": "$25.99", 217 | "rating": "4.7" 218 | }, 219 | { 220 | "title": "Brown Wireless Keyboard and Mouse Combo,Colorful Retro Keyboard with Round Keycaps, 2.4GHz Dropout-Free Connection, Cute Mouse Compatible with PC/Laptop/Computer (MilkTea Color)", 221 | "url": "https://www.amazon.com/Wireless-Keyboard-Dropout-Free-Connection-Compatible/dp/B0B4JYRFKM/ref=sr_1_30?keywords=keyboard&qid=1693133741&sr=8-30", 222 | "img_source": "https://m.media-amazon.com/images/I/61T42vMOfJL._AC_SX425_.jpg", 223 | "fee": "$39.99", 224 | "rating": "4.5" 225 | }, 226 | { 227 | "title": "HITIME XVX M61 60% Mechanical Keyboard Wireless, Ultra-Compact 2.4G Rechargeable Gaming Keyboard, RGB Backlit Ergonomic Keyboard for Windows Mac PC Gamers(Coral Sea Theme, Gateron Yellow Switch)", 228 | "url": "https://www.amazon.com/Mechanical-Keyboard-Ultra-Compact-Rechargeable-Ergonomic/dp/B09B23CX6Y/ref=sr_1_31?keywords=keyboard&qid=1693133741&sr=8-31", 229 | "img_source": "https://m.media-amazon.com/images/I/61hdRFcTkzL._AC_SX679_.jpg", 230 | "fee": "$69.99", 231 | "rating": "4.6" 232 | }, 233 | { 234 | "title": "CC MALL Typewriter Style Gaming Keyboard, Retro Steampunk Vintage Mechanical Keyboard with Pure White Backlit, 104-Key Anti-Ghosting Blue Switch Wired USB Metal Panel Round Keycaps (Lipstick)", 235 | "url": "https://www.amazon.com/CC-MALL-Typewriter-Mechanical-Anti-Ghosting/dp/B0BYYPX1HC/ref=sr_1_32?keywords=keyboard&qid=1693133741&sr=8-32", 236 | "img_source": "https://m.media-amazon.com/images/I/71Ng5JX86kL._AC_SX679_.jpg", 237 | "fee": "$29.99", 238 | "rating": "4.7" 239 | }, 240 | { 241 | "title": "Snpurdiri 60% Wired Gaming Keyboard, RGB Backlit Ultra-Compact Mini Keyboard, Waterproof Small Compact 61 Keys Keyboard for PC/Mac Gamer, Typist, Travel, Easy to Carry on Business Trip(Black-White)", 242 | "url": "https://www.amazon.com/Snpurdiri-Keyboard-Ultra-Compact-Waterproof-Black-White/dp/B097T276QL/ref=sr_1_33?keywords=keyboard&qid=1693133818&sr=8-33", 243 | "img_source": "https://m.media-amazon.com/images/I/61UGJ7z-sUL._AC_SX425_.jpg", 244 | "fee": "$27.99", 245 | "rating": "4.3" 246 | }, 247 | { 248 | "title": "Logitech G413 TKL SE Mechanical Gaming Keyboard - Compact Backlit Keyboard with Tactile Mechanical Switches, Anti-Ghosting, Compatible with Windows, macOS - Black Aluminum", 249 | "url": "https://www.amazon.com/Logitech-Keyboard-Mechanical-Anti-Ghosting-Keys-White/dp/B08Z7J4KV3/ref=sr_1_34?keywords=keyboard&qid=1693133818&sr=8-34", 250 | "img_source": "https://m.media-amazon.com/images/I/61U-zlxQmWL._AC_SX679_.jpg", 251 | "fee": "$49.99", 252 | "rating": "4.6" 253 | }, 254 | { 255 | "title": "BLOOTH Mechanical Gaming Keyboard LED Backlit 104 Keys, Blue Switches Keys with 6 LED Color Modes, 8 Preset Lighting Effects, USB Wired for PC Gamers", 256 | "url": "https://www.amazon.com/BLOOTH-Mechanical-Keyboard-Switches-Lighting/dp/B0C4TLJFGG/ref=sr_1_35?keywords=keyboard&qid=1693133818&sr=8-35", 257 | "img_source": "https://m.media-amazon.com/images/I/619dtF-oaYL._AC_SX679_.jpg", 258 | "fee": "$19.99", 259 | "rating": "3.4" 260 | }, 261 | { 262 | "title": "Montech MKey TKL Mechanical Gaming Keyboard: Customizable RGB LED, Premium MDA Profile PBT Keycap, Hot-Swappable Gateron G Brown Pro 2.0 Pre-lubed Switches, Osaka Castle Theme, Freedom (MK87FB)", 263 | "url": "https://www.amazon.com/Montech-MKey-Mechanical-Gaming-Keyboard/dp/B0CB436QFM/ref=sr_1_36?keywords=keyboard&qid=1693133818&sr=8-36", 264 | "img_source": "https://m.media-amazon.com/images/I/817asF6ZqsL._AC_SX679_.jpg", 265 | "fee": "$89.00", 266 | "rating": "5.0" 267 | }, 268 | { 269 | "title": "HUO JI Gaming Keyboard USB Wired with Rainbow LED Backlit, Quiet Floating Keys, Mechanical Feeling, Spill Resistant, Ergonomic for Xbox, PS Series, Desktop, Computer, PC, Blue Purple", 270 | "url": "https://www.amazon.com/Keyboard-Floating-Mechanical-Resistant-Ergonomic/dp/B09ZXP7L78/ref=sr_1_37?keywords=keyboard&qid=1693133818&sr=8-37", 271 | "img_source": "https://m.media-amazon.com/images/I/61+lo2qfH+L._AC_SX679_.jpg", 272 | "fee": "$21.99", 273 | "rating": "4.5" 274 | }, 275 | { 276 | "title": "RK ROYAL KLUDGE S918 Typewriter Mechanical Gaming Keyboard, RGB Backlit Keyboard with Full Surround Side Lamp and Retro Round Keycap, Full Size 108 Keys Wired Computer Keyboards, Blue Switch White", 277 | "url": "https://www.amazon.com/RK-ROYAL-KLUDGE-Sorrounding-Anti-Ghosting/dp/B08SWP5QPF/ref=sr_1_38?keywords=keyboard&qid=1693133818&sr=8-38", 278 | "img_source": "https://m.media-amazon.com/images/I/71bW-FJZ5pL._AC_SX679_.jpg", 279 | "fee": "$59.99", 280 | "rating": "4.9" 281 | }, 282 | { 283 | "title": "RK ROYAL KLUDGE RK98 Wireless Mechanical Keyboard Triple Mode 2.4G/BT5.1/USB-C 100 Keys Hot Swappable Brown Switches with Number Pad RGB Backlit 3750mAh Battery NKRO Gaming Keyboard Ergonomic Design", 284 | "url": "https://www.amazon.com/RK-ROYAL-KLUDGE-Mechanical-Swappable/dp/B0B87N1714/ref=sr_1_39?keywords=keyboard&qid=1693133818&sr=8-39", 285 | "img_source": "https://m.media-amazon.com/images/I/61ZJyag4FvL._AC_SX679_.jpg", 286 | "fee": "$63.99", 287 | "rating": "4.6" 288 | }, 289 | { 290 | "title": "KZZI K75 PRO RGB 75% Wireless Gasket Mechanical Keyboard, Triple Mode Bluetooth 5.0/2.4G/USB-C 82 Keys Hot Swappable Gaming Keyboard w/Knob & Power Display, Custom Linear Switches, Arcade Games", 291 | "url": "https://www.amazon.com/KZZI-K75-Mechanical-Bluetooth-Swappable/dp/B0C8H11WRG/ref=sr_1_40?keywords=keyboard&qid=1693133818&sr=8-40", 292 | "img_source": "https://m.media-amazon.com/images/I/61xACPe+F-L._AC_SX679_.jpg", 293 | "fee": "$119.99", 294 | "rating": "5.0" 295 | }, 296 | { 297 | "title": "Macally Wireless Bluetooth Keyboard with Numeric Keypad - Multi Device Keyboard for Mac Pro/Mini, Apple iMac, MacBook, Laptop, Computer Windows PC. Android, Smartphones, Tablets (Aluminum Silver)", 298 | "url": "https://www.amazon.com/Macally-Wireless-Bluetooth-Keyboard-Computers/dp/B07SQD723P/ref=sr_1_41?keywords=keyboard&qid=1693133818&sr=8-41", 299 | "img_source": "https://m.media-amazon.com/images/I/81dYosrLDwS._AC_SX679_.jpg", 300 | "fee": "$49.99", 301 | "rating": "4.3" 302 | }, 303 | { 304 | "title": "SteelSeries Apex 7 Mechanical Gaming Keyboard \u2013 OLED Smart Display \u2013 USB Passthrough and Media Controls \u2013 Linear , Quiet \u2013 RGB Backlit (Red Switch)", 305 | "url": "https://www.amazon.com/SteelSeries-Apex-Mechanical-Gaming-Keyboard/dp/B07SWNSXQN/ref=sr_1_42?keywords=keyboard&qid=1693133818&sr=8-42", 306 | "img_source": "https://m.media-amazon.com/images/I/81yOuAUQAiL._AC_SX679_.jpg", 307 | "fee": "$107.00", 308 | "rating": "4.6" 309 | }, 310 | { 311 | "title": "HyperX Alloy Origins - Mechanical Gaming Keyboard, Software-Controlled Light & Macro Customization, Compact Form Factor, RGB LED Backlit - Linear HyperX Red Switch (Black)", 312 | "url": "https://www.amazon.com/HyperX-Alloy-Origins-Software-Controlled-Customization/dp/B07W86N3JV/ref=sr_1_43?keywords=keyboard&qid=1693133818&sr=8-43", 313 | "img_source": "https://m.media-amazon.com/images/I/71ZEdqXx5hL._AC_SX679_.jpg", 314 | "fee": "$85.90", 315 | "rating": "4.7" 316 | }, 317 | { 318 | "title": "yesbeaut Gaming Keyboard, 7-Color Rainbow LED Backlit, 104 Keys Quiet Light Up Keyboard, Wrist Rest, Multimedia Keys, Whisper Silent, Anti-ghosting Keys, Waterproof USB Wired Keyboard for PC Mac Xbox", 319 | "url": "https://www.amazon.com/Keyboard-7-Color-Multimedia-Anti-ghosting-Waterproof/dp/B09YRBD8TM/ref=sr_1_44?keywords=keyboard&qid=1693133818&sr=8-44", 320 | "img_source": "https://m.media-amazon.com/images/I/71xV95j1TyL._AC_SX679_.jpg", 321 | "fee": "$21.99", 322 | "rating": "4.5" 323 | }, 324 | { 325 | "title": "Redragon K618 Horus Wireless RGB Mechanical Keyboard, Bluetooth/2.4Ghz/Wired Tri-Mode Low Profile Gaming Keyboard w/Ultra-Thin Design, Dedicated Media Control & Linear Red Switch", 326 | "url": "https://www.amazon.com/Redragon-Mechanical-Bluetooth-Ultra-Thin-Connection/dp/B098785CL3/ref=sr_1_45?keywords=keyboard&qid=1693133818&sr=8-45", 327 | "img_source": "https://m.media-amazon.com/images/I/61pzKUe4REL._AC_SX679_.jpg", 328 | "fee": "$51.24", 329 | "rating": "4.2" 330 | }, 331 | { 332 | "title": "Wireless Mechanical Keyboard, Triple Mode 2.4G/USB-C/Bluetooth Gaming Keyboard, 104 Keys Programmable, Customize RGB Backlit, Red Switch, Bicolor PBT Keycaps, Rechargeable Wired Keyboard for Laptop PC", 333 | "url": "https://www.amazon.com/Mechanical-Bluetooth-Programmable-Customize-Rechargeable/dp/B0B8NK7G43/ref=sr_1_46?keywords=keyboard&qid=1693133818&sr=8-46", 334 | "img_source": "https://m.media-amazon.com/images/I/71QFOhYu-yL._AC_SX679_.jpg", 335 | "fee": "$49.99", 336 | "rating": "4.5" 337 | }, 338 | { 339 | "title": "Havit Mechanical Keyboard, Wired Compact PC Keyboard with Number Pad Red Switch Mechanical Gaming Keyboard 89 Keys for Computer/Laptop (Black)", 340 | "url": "https://www.amazon.com/Mechanical-Keyboard-Gaming-Keycaps-Computer/dp/B085ZDXGZW/ref=sr_1_47?keywords=keyboard&qid=1693133818&sr=8-47", 341 | "img_source": "https://m.media-amazon.com/images/I/71yGtauB-AL._AC_SX679_.jpg", 342 | "fee": "$42.99", 343 | "rating": "4.5" 344 | }, 345 | { 346 | "title": "Redragon Mechanical Gaming Keyboard, Wired Mechanical Keyboard with RGB Backlit, 94 Keys, Programmable Macro Editing, Numeric Pad, Red Switches, Compact Keyboard Mechanical for Pc Mac Ipad, K636CLO", 347 | "url": "https://www.amazon.com/Redragon-Mechanical-Keyboard-Programmable-K636CLO/dp/B0BP11JXFK/ref=sr_1_48?keywords=keyboard&qid=1693133818&sr=8-48", 348 | "img_source": "https://m.media-amazon.com/images/I/614-FyISnxL._AC_SX679_.jpg", 349 | "fee": "$35.99", 350 | "rating": "4.6" 351 | }, 352 | { 353 | "title": "Lovaky MK98 Wireless Keyboard, 2.4G Ergonomic Wireless Computer Keyboard, Enlarged Indicator Light, Full Size PC Keyboard with Numeric Keypad for Laptop, Desktop, Surface, Chromebook, Notebook, Black", 354 | "url": "https://www.amazon.com/Lovaky-Wireless-Ergonomic-Indicator-Chromebook/dp/B09KZGY5TK/ref=sr_1_49?keywords=keyboard&qid=1693133892&sr=8-49", 355 | "img_source": "https://m.media-amazon.com/images/I/61fie1u7QAL._AC_SX425_.jpg", 356 | "fee": "$15.99", 357 | "rating": "4.3" 358 | }, 359 | { 360 | "title": "Logitech K750 Wireless Solar Keyboard for Windows Solar Recharging Keyboard Black, Not for Mac (Windows Black)", 361 | "url": "https://www.amazon.com/Logitech-Wireless-Keyboard-Windows-Recharging/dp/B07NQRL6P6/ref=sr_1_50?keywords=keyboard&qid=1693133892&sr=8-50", 362 | "img_source": "https://m.media-amazon.com/images/I/61HIFL-3fmL._AC_SX679_.jpg", 363 | "fee": "$61.99", 364 | "rating": "4.4" 365 | }, 366 | { 367 | "title": "nuphy Air75 Mechanical Keyboard, 75% Low Profile Wireless Keyboard, Supports Bluetooth 5.0, 2.4G and Wired Connection, Compatible with Windows and Mac OS Systems-Gateron Brown Switch", 368 | "url": "https://www.amazon.com/Air75-Mechanical-Connection-Compatible-Systems-Gateron/dp/B09KG6MSVH/ref=sr_1_51?keywords=keyboard&qid=1693133892&sr=8-51", 369 | "img_source": "https://m.media-amazon.com/images/I/61zS4S1wMiL._AC_SX679_.jpg", 370 | "fee": "$129.99", 371 | "rating": "4.5" 372 | }, 373 | { 374 | "title": "MageGee Gaming Keyboard, Rainbow Backlit LED Wired Gaming Keyboard with Clear Housing and Double-Shot Keycaps, K1 Waterproof Ergonomic 104 Keys Light Up Keyboard for PC Desktop Laptop, Gray & Black", 375 | "url": "https://www.amazon.com/Keyboard-Double-Shot-MageGee-Waterproof-Ergonomic/dp/B0B6HC6G3C/ref=sr_1_52?keywords=keyboard&qid=1693133892&sr=8-52", 376 | "img_source": "https://m.media-amazon.com/images/I/71EGCQXKg8L._AC_SX679_.jpg", 377 | "fee": "$19.99", 378 | "rating": "4.2" 379 | }, 380 | { 381 | "title": "Arteck HW193 USB Wireless Keyboard Stainless Steel Ultra Slim Full Size Keyboard with Numeric Keypad for Computer/Desktop/PC/Laptop/Surface/Smart TV and Windows 11/10/8 Built in Rechargeable Battery", 382 | "url": "https://www.amazon.com/Arteck-HW193-Wireless-Stainless-Rechargeable/dp/B07VV9KMSQ/ref=sr_1_53?keywords=keyboard&qid=1693133892&sr=8-53", 383 | "img_source": "https://m.media-amazon.com/images/I/61s0xskzunL._AC_SX425_.jpg", 384 | "fee": "$25.99", 385 | "rating": "4.4" 386 | }, 387 | { 388 | "title": "Wireless Keyboard and Mouse Combo, EDJO 2.4G Full-Sized Ergonomic Computer Keyboard with Wrist Rest and 3 Level DPI Adjustable Wireless Mouse for Windows, Mac OS Desktop/Laptop/PC", 389 | "url": "https://www.amazon.com/Wireless-EDJO-Full-Sized-Ergonomic-Adjustable/dp/B08PBVDQKG/ref=sr_1_54?keywords=keyboard&qid=1693133892&sr=8-54", 390 | "img_source": "https://m.media-amazon.com/images/I/61qy8xEikhL._AC_SX425_.jpg", 391 | "fee": "$34.99", 392 | "rating": "4.3" 393 | }, 394 | { 395 | "title": "Pink Wireless Keyboard Mouse Combo, 2.4GHz Wireless Retro Typewriter Keyboard and Mouse Combo, Letton Full Size Wireless Office Computer Keyboard and Cute Mouse with 3 DPI for Mac PC Desktop Laptop", 396 | "url": "https://www.amazon.com/Letton-Wireless-Keyboard-Mouse-Combo-Pink/dp/B07S89T7JJ/ref=sr_1_55?keywords=keyboard&qid=1693133892&sr=8-55", 397 | "img_source": "https://m.media-amazon.com/images/I/61Sps2B822L._AC_SX425_.jpg", 398 | "fee": "$38.98", 399 | "rating": "4.4" 400 | }, 401 | { 402 | "title": "SteelSeries Apex 3 TKL RGB Gaming Keyboard \u2013 Tenkeyless Compact Form Factor - 8-Zone RGB Illumination \u2013 IP32 Water & Dust Resistant \u2013 Whisper Quiet Gaming Switch \u2013 Gaming Grade Anti-Ghosting,Black", 403 | "url": "https://www.amazon.com/SteelSeries-Apex-Gaming-Keyboard-Anti-Ghosting/dp/B09FTNMT84/ref=sr_1_56?keywords=keyboard&qid=1693133892&sr=8-56", 404 | "img_source": "https://m.media-amazon.com/images/I/81dLH5W903L._AC_SX679_.jpg", 405 | "fee": "$31.38", 406 | "rating": "4.7" 407 | }, 408 | { 409 | "title": "Keychron K8 Pro QMK/VIA Wireless Mechanical Keyboard, Hot-Swappable Aluminum Frame TKL Custom Programmable Keyboard with RGB Backlit, Gateron G Pro Red Switch", 410 | "url": "https://www.amazon.com/Keychron-Wireless-Mechanical-Hot-Swappable-Programmable/dp/B0BHVJ1HNY/ref=sr_1_58?keywords=keyboard&qid=1693133892&sr=8-58", 411 | "img_source": "https://m.media-amazon.com/images/I/61cGOin9tTL._AC_SX679_.jpg", 412 | "fee": "$124.99", 413 | "rating": "4.8" 414 | }, 415 | { 416 | "title": "ROCCAT Vulcan 121 AIMO Linear Mechanical Titan Switch Full-size PC Gaming Keyboard with Per-key AIMO RGB Lighting, Anodized Aluminum Top Plate and Detachable Palm Rest \u2013 Black", 417 | "url": "https://www.amazon.com/Vulcan-Aimo-Mechanical-Gaming-Keyboard/dp/B07YNHBVGQ/ref=sr_1_59?keywords=keyboard&qid=1693133892&sr=8-59", 418 | "img_source": "https://m.media-amazon.com/images/I/81dvVgSVhtL._AC_SX679_.jpg", 419 | "fee": "$69.99", 420 | "rating": "4.6" 421 | }, 422 | { 423 | "title": "Gaming Keyboard, Dacoity Full Size Rainbow LED Backlit Quiet Computer Keyboard, Wrist Rest, 8 Multimedia Keys, 25 Keys Anti-ghosting, Office Key, Waterproof Light Up USB Wired Keyboard for PC Mac Xbox", 424 | "url": "https://www.amazon.com/Keyboard-Dacoity-Multimedia-Anti-ghosting-Waterproof/dp/B0BQC4GB3T/ref=sr_1_61?keywords=keyboard&qid=1693133892&sr=8-61", 425 | "img_source": "https://m.media-amazon.com/images/I/61ZaLWoqtcL._AC_SX679_.jpg", 426 | "fee": "$24.99", 427 | "rating": "4.6" 428 | }, 429 | { 430 | "title": "CHONCHOW RGB Compact Gaming Keyboard, USB Wired 87 Keys Gaming Keyboard LED Rainbow Backlit Tenkeyless Gaming Keyboard TKL Keyboard Gaming RGB Keyboard for Laptop Ps4 Xbox PC Computer Game and Work", 431 | "url": "https://www.amazon.com/Compact-Keyboard-CHONCHOW-Tenkeyless-Computer/dp/B08BFD9NQH/ref=sr_1_62?keywords=keyboard&qid=1693133892&sr=8-62", 432 | "img_source": "https://m.media-amazon.com/images/I/71aJow-0fML._AC_SX679_.jpg", 433 | "fee": "$16.99", 434 | "rating": "4.3" 435 | } 436 | ] 437 | -------------------------------------------------------------------------------- /script.js: -------------------------------------------------------------------------------- 1 | fetch("scraped_data.json") 2 | .then((response) => response.json()) 3 | .then((data) => { 4 | console.log(data); 5 | data.forEach((item) => { 6 | const productDiv = document.createElement("container"); 7 | productDiv.className = "product"; 8 | 9 | const img = document.createElement("img"); 10 | img.src = item.img_source; 11 | productDiv.appendChild(img); 12 | 13 | const title = document.createElement("h3"); 14 | title.textContent = item.title; 15 | productDiv.appendChild(title); 16 | 17 | const price = document.createElement("p"); 18 | price.textContent = item.fee; 19 | productDiv.appendChild(price); 20 | 21 | const rating = document.createElement("p"); 22 | rating.textContent = item.rating; 23 | productDiv.appendChild(rating); 24 | 25 | const link = document.createElement("a"); 26 | link.href = item.url; 27 | link.textContent = "View on Amazon"; 28 | link.target = "_blank"; 29 | productDiv.appendChild(link); 30 | container.appendChild(productDiv); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | 2 | body { 3 | font-family: 'Poppins', sans-serif; 4 | margin: 0; 5 | } 6 | 7 | header { 8 | background-color: #0077cc; 9 | color: #fff; 10 | padding: 20px; 11 | text-align: center; 12 | } 13 | 14 | #container { 15 | display: flex; 16 | flex-wrap: wrap; 17 | justify-content: center; 18 | max-width: 1500px; 19 | margin:auto; 20 | } 21 | 22 | .product { 23 | border: 1px solid #ddd; 24 | border-radius: 4px; 25 | margin:10px; 26 | padding: 10px; 27 | width: 300px; 28 | background-color: #fff; 29 | -webkit-box-shadow: -1px 2px 82px -57px rgba(0,0,0,0.75); 30 | -moz-box-shadow: -1px 2px 82px -57px rgba(0,0,0,0.75); 31 | box-shadow: -1px 2px 82px -57px rgba(0,0,0,0.75); 32 | transition: all 0.3s ease-in-out; 33 | } 34 | 35 | .product:hover { 36 | -webkit-box-shadow: -1px 42px 110px -57px rgba(0,0,0,0.75); 37 | -moz-box-shadow: -1px 42px 110px -57px rgba(0,0,0,0.75); 38 | box-shadow: -1px 42px 110px -57px rgba(0,0,0,0.75); 39 | } 40 | 41 | .product img { 42 | width: 100%; 43 | } 44 | 45 | .product a { 46 | color: #0077cc; 47 | text-decoration: none; 48 | } --------------------------------------------------------------------------------