This project is a web scraper for the Books to Scrape website. It collects information about each book, including its title, price, and rating, and saves it to a CSV file. Perfect for learning web scraping techniques using Python, BeautifulSoup, and Pandas.
- Extract book information: Title, Price, and Rating.
- Save data to a CSV file for easy analysis.
- User-friendly code with detailed comments.
- Python: Core language.
- BeautifulSoup: HTML parsing.
- Pandas: Data manipulation and CSV export.
- Clone this repository:
git clone https://github.com/username/books-scraper.git cd books-scraper Install dependencies:
Copy code pip install -r requirements.txt Run the scraper:
bash Copy code python scrape_books.py The output will be saved to data/books_data.csv.