Scrape Amazon product data such as Product Name, Product Images, Product URL, Number of Reviews, ASIN, and Price.
Project description
Scrape Amazon product data such as Product Name, Product Images, Product URL, Number of Reviews, ASIN, and Price.
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]
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
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"
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.1.tar.gz
(5.3 kB
view hashes)
Built Distributions
amazon_scrape-1.0.1-py3.9.egg
(7.8 kB
view hashes)
Close
Hashes for amazon_scrape-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9ffd0066e041ad23c7f15b8281447f1a2c240b0a576e16561610e3b5aa9c4d1 |
|
MD5 | 9553d2fcf13388c105afa4204c6e0341 |
|
BLAKE2b-256 | e6c3806dda9545f62e39c63d3e7fba96ea6b134f2474fe958be003844a7a3d99 |