AmzPy - Amazon Product Scraper
AmzPy is a lightweight Python library for scraping product information from Amazon. It provides a simple interface to fetch product details like title, price, currency, and image URL while handling anti-bot measures automatically.
Features
- Easy-to-use API for scraping Amazon product data
- Supports multiple Amazon domains (.com, .in, .co.uk, etc.)
- Built-in anti-bot protection
- Automatic retries on detection
- Clean and typed Python interface
Installation
Install using pip:
pip install amzpy
Usage
Here's a basic example of how to use AmzPy:
from amzpy import AmazonScraper
scraper = AmazonScraper()
product_details = scraper.get_product_details("https://www.amazon.com/dp/B0D4J2QDVY")
print(product_details)
This will output the product details including title, price, image URL, and currency.
Feel free to explore the codebase for more details and advanced features. Happy scraping!
Output:
{
"title": "Product Title",
"price": "299",
"currency": "$",
"img_url": "https://..."
}
Requirements
- Python 3.6+
- requests
- beautifulsoup4
- fake-useragent
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md for details on how to contribute to this project.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file amzpy-0.1.1.tar.gz.
File metadata
- Download URL: amzpy-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2911775f8031cb444eb9da09da20143ea842d49848a96b0b5fe697f25d450869
|
|
| MD5 |
a494aebadfa2f8d1f4a0373ae3c57b12
|
|
| BLAKE2b-256 |
11a22bd4cb96c4391f4e8288c018795c3019d982360d4cc6ca2fd6a6452c2703
|
File details
Details for the file amzpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: amzpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feee40000c8d45e0c7f282e8df684387a84d240ef60166d788d27c98c7a44d14
|
|
| MD5 |
91a716c7a705590ae8fa0f4535126812
|
|
| BLAKE2b-256 |
f2a80b7f4766bbab1f87039422de190bed27104e9c33fc09b6eee09a5287b949
|