A scraper that scrapes products from the search results of Amazon. 🕵️♂️🛍️
- Title: Product title 📦
- Product URL: Link to the product page 🔗
- Image URL: Link to the product image 🖼️
- Total Reviews: Total number of reviews for the product 🌟
- Rating: Product rating out of 5 ⭐
- Price: Product price 💰
You can set how many pages you want to scrape and the output format (Excel or CSV). Note that you need to insert the link to the second page of the search results, not the first page.
- Clone the repository to your local machine.
- Install the required libraries by running the following command:
- Open the
main.py
file and insert the link of the second page of the search results. - Set the number of pages you want to scrape and the output format (Excel or CSV).
- Run
main.py
. The scraped data will be saved in a file namedproducts.xlsx
orproducts.csv
depending on the output format you chose.
pip install -r requirements.txt
Contributions are welcome! Feel free to submit a pull request. 🤝👨💻👩💻