Webscrape project to get Amazon products' descriptions.
This library is compatible with Python >= 3.9 and requires:
bs4fake-useragentpandasrequestsselenium
Module can be installed from PyPI with:
pip install amazon-description-scraper
from amzsc import AmazonScraper
proxy_key = "XXXXXXXXXXX" # enter real proxy key here
client = AmazonScraper(proxy_key=proxy_key, jsonl_output_path="data/output.jsonl")
asins = ["B07WC4TDJJ"]
results = client.scrape(asins=asins, marketplace="US")
print(results)Contribute to this repository by forking this repository and installing in development mode with:
git clone https://github.com/<USERNAME>/amazon-description-scraper pip install -e .[test]
You can then add your feature or commit your bug fix and then run your unit testing with:
pytest
Unit testing will automatically enforce minimum code coverage standards.
Next, to ensure your code meets minimum code styling standards, run:
pre-commit run --all-files
Finally, create a pull request from your fork and I'll be sure to review it.