Web Scrapers
Automated data extraction using Python, Requests, and BeautifulSoup.
⚡ Note: This was built in month 3 of my self-taught journey (March 2026).
~ About the Project
This repository contains two separate web scraping scripts. The first targets books.toscrape.com, navigating through pages to extract book titles, prices, ratings, and availability, cleaning the price strings using Regex. The second targets quotes.toscrape.com, grabbing quotes, authors, and links to their detail pages.
Both scripts handle timeouts and request exceptions gracefully, demonstrating how to build resilient scrapers that output cleanly formatted CSV files for data analysis.
~ Tech Stack
~ How to Run
1. Install the required dependencies (requests, BeautifulSoup, and lxml):
pip install requests beautifulsoup4 lxml
2. Run the script you want to test:
python books_scraper.py
OR
python quotes_scrapper.py
* The scraped data will be saved as CSV files in the same directory.
~ Want to try it?
Download the scripts, install the dependencies, and run them. Let me know if you find any edge cases or want to see a new feature added!