Skip to main content

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: amzpy-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 16ccac789fca92cce2a89f963c744a46cb2fb0f6101e8f7a5e6402860b9e2b07
MD5 b2e7b1987dd9c7d407eb58491f22e9e6
BLAKE2b-256 b02c8ba99b632e6584d95a16c90be4447886cdb1158549d42b8251ed0bef6085

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amzpy-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93045e0e43268f6b683d7ced1fb37f921072f3a77ba2b78c33ecad68ea5c79cc
MD5 881e44e22533eebc1e49defc1b818e0f
BLAKE2b-256 a4c82f1240c28208c77f2d3ad57fc3257c08e5bc17c6bda8d751e7d83666c728

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

0.1.1

2 files

This release

0.1.0 This release

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