# AmzPy - Amazon Product Scraper
[![PyPI](https://img.shields.io/pypi/v/amzpy)](https://pypi.org/project/amzpy/)
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:
```python
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:
```json
{
"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](CONTRIBUTING.md) for details on how to contribute to this project.
Raw data
{
"_id": null,
"home_page": "https://github.com/theonlyanil/amzpy",
"name": "amzpy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "amazon, scraper, web-scraping, product-data, e-commerce",
"author": "Anil Sardiwal",
"author_email": "theonlyanil@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3d/6c/ac62b912c075ac6961bf699f3bb26973a464e634b372cb13850db1efa3f7/amzpy-0.1.2.tar.gz",
"platform": null,
"description": "# AmzPy - Amazon Product Scraper\n[![PyPI](https://img.shields.io/pypi/v/amzpy)](https://pypi.org/project/amzpy/)\n\nAmzPy 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.\n\n## Features\n\n- Easy-to-use API for scraping Amazon product data\n- Supports multiple Amazon domains (.com, .in, .co.uk, etc.)\n- Built-in anti-bot protection\n- Automatic retries on detection\n- Clean and typed Python interface\n\n## Installation\n\nInstall using pip:\n`pip install amzpy`\n\n## Usage\n\nHere's a basic example of how to use AmzPy:\n\n```python\nfrom amzpy import AmazonScraper\n\nscraper = AmazonScraper()\nproduct_details = scraper.get_product_details(\"https://www.amazon.com/dp/B0D4J2QDVY\")\nprint(product_details)\n```\n\nThis will output the product details including title, price, image URL, and currency.\n\nFeel free to explore the codebase for more details and advanced features. Happy scraping!\n\nOutput:\n```json\n{\n\"title\": \"Product Title\",\n\"price\": \"299\",\n\"currency\": \"$\",\n\"img_url\": \"https://...\"\n}\n```\n## Requirements\n\n- Python 3.6+\n- requests\n- beautifulsoup4\n- fake-useragent\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Contributing\n\nContributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.\n",
"bugtrack_url": null,
"license": null,
"summary": "A lightweight Amazon scraper library.",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/theonlyanil/amzpy"
},
"split_keywords": [
"amazon",
" scraper",
" web-scraping",
" product-data",
" e-commerce"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f950171d43fa631c51ae7f183e5eba81560d2f68e4e2f6c77d34e880731436e1",
"md5": "f0bc1f357dc3fb185d638e81b81d9ac0",
"sha256": "608bdc1228b0739b1b6a8c623371a2fe63cc673a65537cbc298a51ab12c0c240"
},
"downloads": -1,
"filename": "amzpy-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f0bc1f357dc3fb185d638e81b81d9ac0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 6332,
"upload_time": "2025-01-23T09:46:19",
"upload_time_iso_8601": "2025-01-23T09:46:19.369204Z",
"url": "https://files.pythonhosted.org/packages/f9/50/171d43fa631c51ae7f183e5eba81560d2f68e4e2f6c77d34e880731436e1/amzpy-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3d6cac62b912c075ac6961bf699f3bb26973a464e634b372cb13850db1efa3f7",
"md5": "fbe80512d8f5a382bd72c4a215c52850",
"sha256": "6442749da9c1a848129b222447792ec43351d35c5e62e99255c1293f28b6286f"
},
"downloads": -1,
"filename": "amzpy-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "fbe80512d8f5a382bd72c4a215c52850",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4927,
"upload_time": "2025-01-23T09:46:20",
"upload_time_iso_8601": "2025-01-23T09:46:20.619040Z",
"url": "https://files.pythonhosted.org/packages/3d/6c/ac62b912c075ac6961bf699f3bb26973a464e634b372cb13850db1efa3f7/amzpy-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-23 09:46:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "theonlyanil",
"github_project": "amzpy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "requests",
"specs": [
[
">=",
"2.28.0"
]
]
},
{
"name": "beautifulsoup4",
"specs": [
[
">=",
"4.11.0"
]
]
},
{
"name": "fake-useragent",
"specs": [
[
">=",
"1.1.1"
]
]
}
],
"lcname": "amzpy"
}