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.pyfile 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.xlsxorproducts.csvdepending on the output format you chose.
pip install -r requirements.txtContributions are welcome! Feel free to submit a pull request. π€π¨βπ»π©βπ»