Skip to main content

No project description provided

Project description

Amazon Product Scraper

This project is a powerful web scraping tool designed to extract data from Amazon. Whether you're looking to gather details about a specific product, collect lists of products based on search keywords, or fetch product listings from a direct URL — this scraper handles it all, including automatic CAPTCHA solving.


🔍 Features

  • Search by keyword: Provide a search term and specify how many pages to scrape. It will return all matching products from the given number of pages.
  • Get product details: Supply a product URL and receive detailed information like:
    • Title
    • Price
    • Description
    • Features
    • Rating
    • Number of reviews
  • Extract product list by link: Given a category or listing page URL, it fetches all the product entries up to the page limit.
  • Automatic CAPTCHA Bypass: Solves Amazon CAPTCHAs automatically to allow seamless scraping.

🚀 Technologies Used

  • Selenium: For browser automation and interaction with dynamic content.
  • BeautifulSoup: For parsing and extracting data from HTML content.
  • Pillow (PIL): Used to process and solve CAPTCHA images.

🔽 How to Install

pip install master-scramazon

📖 How to Use

1. Initialize the Scraper

from master_scramazon import AmazonScraper

scraper = AmazonScraper()  # Initializes and runs the Chrome driver

2. Solve CAPTCHA

scraper.bypass_captcha()

When you see the success message, the CAPTCHA is solved and you can proceed to use the other methods.

3. Search Products by Keyword

results = scraper.get_product_by_search("laptop", page_limit=2)

This will return a dictionary of products found in the first 2 pages for the search term "laptop".

4. Get Product List by Link

product_list = scraper.get_product_list_by_link("https://www.amazon.com/s?k=smartphones", page_limit=2)

Scrapes product listings from the given URL up to 2 pages.

5. Get Detailed Product Info

product_details = scraper.get_detail_product_by_link("https://www.amazon.com/dp/B0...example")

Returns detailed product information such as title, price, rating, features, and more.


🙏 Support and Contributions

If you have a feature request or find a bug, feel free to open an issue or pull request on GitHub. I’m actively maintaining this project and happy to improve it based on your feedback.

If you find this project helpful, please consider giving it a ⭐ on GitHub — it means a lot!


Happy Scraping! 🤖

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

master_scramazon-0.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

master_scramazon-0.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file master_scramazon-0.1.1.tar.gz.

File metadata

  • Download URL: master_scramazon-0.1.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for master_scramazon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f19be38a2479544e9e6bd9b66b9abba86d6dd6fdbebfed37d5d9d3600bbe43b
MD5 a3b549747414639e51a28780b65a3e62
BLAKE2b-256 4909413aa821630a77a3d80526453821b1c6c3573bd8bbcb10b9a56f85a19f43

See more details on using hashes here.

File details

Details for the file master_scramazon-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for master_scramazon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 343df1238608ccdcc4444745c677ae1c0d984c9e787e6eec880895e7e998dfe2
MD5 3184cdcccd3888ad93c673f43a7f976f
BLAKE2b-256 3b5418cbe879ad9b1be03189ebf8e932d4b9aa4356ff657f2e9df2043624dd60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page