A Python project to scrape book titles, prices, stock availability, and ratings from an online bookstore, export data to Excel, and generate visualizations.
- Scrapes book titles, prices, stock, and ratings
- Exports data to Excel (
data/books_data.xlsx) - Generates visualizations (
images/folder)
BookPriceTracker/ โโ data/ # Excel outputs โโ images/ # Visualizations โโ scripts/ # Python scripts โโ README.md โโ LICENSE โโ requirements.txt โโ .gitignore
Hereโs an example of the data scraped from Books to Scrape:
|| Title | Price | Stock | Rating | |--------|--------|----------|--------| | It's Only the Himalayas | ยฃ45.17 | In stock | 2 | | Full Moon over Noahโs Ark | ยฃ49.43 | In stock | 4 | | The Requiem Red | ยฃ22.65 | Out of stock | 1 | | The Dirty Little Secrets of Getting Your Dream Job | ยฃ33.34 | In stock | 3 | | The Coming Woman: A Novel | ยฃ17.93 | In stock | 5 |
You can also download the full Excel file here: โก๏ธ books_data.xlsx
pip install -r requirements.txt
python scripts/scrape_books.py
python scripts/visualize.py
---
## ๐ป Tech Stack
- Python
- BeautifulSoup
- Requests
- Pandas
- Matplotlib
- Openpyxl
- Excel
---
## License
This project is licensed under the MIT License - see LICENSE file for details.