Skip to main content

AmzPy - Amazon Product Scraper

PyPI

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

amzpy-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amzpy-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for amzpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2911775f8031cb444eb9da09da20143ea842d49848a96b0b5fe697f25d450869
MD5 a494aebadfa2f8d1f4a0373ae3c57b12
BLAKE2b-256 11a22bd4cb96c4391f4e8288c018795c3019d982360d4cc6ca2fd6a6452c2703

See more details on using hashes here.

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

Hashes for amzpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 feee40000c8d45e0c7f282e8df684387a84d240ef60166d788d27c98c7a44d14
MD5 91a716c7a705590ae8fa0f4535126812
BLAKE2b-256 f2a80b7f4766bbab1f87039422de190bed27104e9c33fc09b6eee09a5287b949

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page