Skip to main content

A Python module to scrape product details from Amazon India using Selenium.

Project description

#amazon_scraper

A simple and powerful multi-country Amazon product scraper built using Python and Selenium. It fetches product details like Title, Price, Bought, Rating, Reviews, Image URL, Brand, Category Ranks, and checks for Product Description and From the Manufacturer sections using ASINs.

##🚀 Features

🌍 Scrape from any Amazon marketplace by passing country_code (e.g., in, us, ae, uk) 🔍 Fetch detailed product info: Title Price Bought Rating Reviews Image URL Brand Parent Category Rank Child Category Rank Product Description Available From the Manufacturer Available

📦 Supports single or multiple ASINs 🧼 Automatically handles browser setup and teardown 💡 Lightweight and easy to use

##📦 Installation ###From PyPI: pip install amazon-scraper-vivektyagi

💻 Usage Scrape a single product from amazon_scraper_vivektyagi import get_amazon_product_details

data = get_amazon_product_details("B0C1234567", country_code="in") print(data)

Scrape multiple products

from amazon_scraper_vivektyagi import get_multiple_product_details asins = ["B0C1234567", "B0D7654321"] results = get_multiple_product_details(asins, country_code="ae")

for product in results: print(product)

✅ Output Format { 'ASIN': 'B0C1234567', 'Title': 'Sample Product Title', 'Price': '₹1,299.00', 'Bought':'200', 'Rating': '4.3 out of 5 stars', 'Reviews': '345', 'Image': 'https://m.media-amazon.com/images/I/xxxxx.jpg', 'Brand': 'Sample Brand', 'Parent_Category_Rank': '#12 in Electronics', 'Child_Category_Rank': '#1 in Headphones', 'Product_Description': 'Yes', 'From_Manufacturer': 'No' }

📄 Requirements Python 3.6 or higher Google Chrome installed ChromeDriver (auto-installed via webdriver-manager)

Install dependencies: pip install selenium beautifulsoup4 webdriver-manager

👤 Author Vivek Tyagi

📄 License This project is licensed under the MIT License.

⚠️ Disclaimer This tool is for educational purposes only. Scraping Amazon may violate their Terms of Service. Use responsibly.

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

amazon_scraper_vivektyagi-0.1.12.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

amazon_scraper_vivektyagi-0.1.12-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file amazon_scraper_vivektyagi-0.1.12.tar.gz.

File metadata

File hashes

Hashes for amazon_scraper_vivektyagi-0.1.12.tar.gz
Algorithm Hash digest
SHA256 06c4b85b93e921611461ee890d6149c0eedc3dd41476d56414cc0810b1e2318d
MD5 e12d5f3ee16ad6b0cd5fd68334bcd6bc
BLAKE2b-256 91ed1059b8b8fbcdce388e1a87c0e50cd1d6d635d4308b0b03007b4d5543f01e

See more details on using hashes here.

File details

Details for the file amazon_scraper_vivektyagi-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for amazon_scraper_vivektyagi-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 2bac484bc649b496deae4a3fc9eafc43c28e30f773a8369b750558cd5911fc9f
MD5 29c65799c861f9ea760e1c59ec7d64c6
BLAKE2b-256 787f5fb31b968a3bdb88894b8a488b6637b6b328a08c0d8e59ad7108097625ad

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