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.2.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.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file amzpy-0.1.2.tar.gz.

File metadata

  • Download URL: amzpy-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 6442749da9c1a848129b222447792ec43351d35c5e62e99255c1293f28b6286f
MD5 fbe80512d8f5a382bd72c4a215c52850
BLAKE2b-256 3d6cac62b912c075ac6961bf699f3bb26973a464e634b372cb13850db1efa3f7

See more details on using hashes here.

File details

Details for the file amzpy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: amzpy-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 608bdc1228b0739b1b6a8c623371a2fe63cc673a65537cbc298a51ab12c0c240
MD5 f0bc1f357dc3fb185d638e81b81d9ac0
BLAKE2b-256 f950171d43fa631c51ae7f183e5eba81560d2f68e4e2f6c77d34e880731436e1

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

This release

0.1.2 This release

2 files

0.1.1

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