A simple web scraper built with Python that extracts book data from books.toscrape.com, a sandbox website designed for scraping practice.
The scraper goes through all pages of the website and extracts the following information for each book:
- Title
- Price
- Rating (1-5 stars)
All data is saved into a books.csv file for easy viewing in Excel or any spreadsheet tool.
- Python 3
- requests
- BeautifulSoup4
- Clone the repository
- Create and activate a virtual environment:
- Install dependencies:
pip install -r requirements.txt