Scrape Amazon product data such as Product Name, Product Images, Number of Reviews, Price, Product URL, and ASIN.
Project description
Scrape Amazon product data such as Product Name, Product Images, Number of Reviews, Price, Product URL, and ASIN.
Requirements
Python 2.7 and later.
Setup
You can install this package by using the pip tool and installing:
$ pip install amazon-scrape
Or:
$ easy_install amazon-scrape
Scraper Help
Execute this command amazon_scraper –help in the terminal.
usage: amazon_scraper [-h] [--locale LOCALE] [--keywords KEYWORDS] [--url URL] [--proxy_api_key PROXY_API_KEY] [--pages PAGES] [-r]
optional arguments:
-h, --help show this help message and exit
--locale LOCALE Amazon locale (e.g., "com", "co.uk", "de", etc.)
--keywords KEYWORDS Search keywords
--url URL Amazon URL
--proxy_api_key Scraper API Key
--pages PAGES Number of pages to scrape
-r, --review Scrape reviews
Usage Example
# Specify locale, keywords, API key, and number of pages to scrape:
amazon_scraper --locale com --keywords "laptop" --proxy_api_key "your_api_key" --pages 10
## Specify only keywords and API key (will default to "co.uk" locale and 20 pages):
amazon_scraper --keywords "iphone" --proxy_api_key "your_api_key"
## Specify a direct Amazon URL and API key (will default to "co.uk" locale and 20 pages):
amazon_scraper --url "https://www.amazon.de/s?k=iphone&crid=1OHYY6U6OGCK5&sprefix=ipho%2Caps%2C335&ref=nb_sb_noss_2" --proxy_api_key "your_api_key"
## Specify locale and Amazon URL (will default to 20 pages):
amazon_scraper --locale de --url "https://www.amazon.de/s?k=iphone&crid=1OHYY6U6OGCK5&sprefix=ipho%2Caps%2C335&ref=nb_sb_noss_2" --proxy_api_key "your_api_key"
## Specify review to scrape product(s) reviews:
amazon_scraper --keywords "watches" --proxy_api_key "your_api_key --review
Create Scraper API Account
Sign up for a Scraper API user account.
License
This project is licensed under the MIT License.
Copyright
Copyright © 2023 Finbarrs Oketunji. All Rights Reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
amazon_scrape-1.0.6.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file amazon_scrape-1.0.6.tar.gz
.
File metadata
- Download URL: amazon_scrape-1.0.6.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f065e574c18801f5a4bdb06896588a2dd09a28acdfdb7fa581aa43d93ccfa6a |
|
MD5 | 09059436447c13608860998349c3dfd0 |
|
BLAKE2b-256 | 1b3c7b7fc4460731196e591eeaace6313b430539fb68c26925d0a0509b77b188 |
File details
Details for the file amazon_scrape-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: amazon_scrape-1.0.6-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d1ddf975667ffd8a86f553e473c68438996acf7fef815282704d4729f364f8 |
|
MD5 | e61ee1e2cfde78ddfc17e5ac39fc4211 |
|
BLAKE2b-256 | d646dee599b161a7c7005692a2e58062186785f53b2666f4fb8d9b9b75aa8550 |