**Release Date: November 9, 2024**
Overview
The Amazon Product Search library is designed to simplify the process of finding the best deals on Amazon by scraping product details directly from the site. Built using BeautifulSoup4 and Requests, this Python library allows users to gather comprehensive product information effortlessly.
Key Features
**Product Search:** Search for products by various criteria such as name, brand, type, and price range.
Detailed Data Extraction: Retrieve titles, prices, reviews, images, and product URLs in a single function call.
User -Friendly: Simple import and usage make it accessible for both beginners and experienced developers.
Installation
Users can install the library in two ways:
**From GitHub (Recommended for Developers):**
git clone --depth 1 https://github.com/ManojPanda3/amazon-product-search && pip install -e .
**From PyPI (For Simplicity):**
pip install amazon-product-search
Usage
To utilize the library, import it and call the main function as follows:
import amazon_product_search as ams
Example usage
products = ams.amazon_product_search("iPhone", productType="electronic", brand="Apple", priceRange="80000-100000")
for product in products:
print(f"Title: {product['title']}")
print(f"Price: {product['price']}")
print(f"Reviews: {product['reviews']}")
print(f"Image URL: {product['image_url']}")
print(f"Product Link: {product['url']}")
print("-" * 40)
Important Notes
**Responsible Scraping**: Users are advised to scrape responsibly to avoid being blocked by Amazon due to excessive requests.
**Legal Considerations**: Scraping may violate Amazon's Terms of Service. This tool should be used for personal and educational purposes only.
**Potential Issues**: If data retrieval fails, check for changes in Amazon's website structure or ensure all parameters are correctly specified.
Contributing
Contributions are welcome! Users can open pull requests or create issues on GitHub to suggest improvements or report bugs.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
**Full Changelog**: https://github.com/ManojPanda3/amazon-product-search/commits/v0.1