HUB
Sign inSign up

b1gb01/scrapper-backend

By b1gb01

•Updated over 1 year ago

FastAPI service scraping some bookstores with MySQL & Elasticsearch search API.

Image
Web analytics
0

2.7K

b1gb01/scrapper-backend repository overview

⁠📚 Book Price Scraper

A FastAPI microservice that scrapes book details from online book stores and serves them via a REST API.

⁠✨ Features

  • 🔍 Search for books in MySQL or Elasticsearch with fuzzy matching & phrase search.
  • 📦 Automated scheduled crawling every 48 hours.
  • 🌐 CORS-enabled for easy integration with web & mobile apps.
  • 📷 Image proxy endpoint for secure retrieval of product images.

⁠🏪 Supported Stores

  • Savanis Book Centre – HTML parsing with BeautifulSoup.
  • Text Book Centre – API-based retrieval for bulk product data.

⁠🛠 Tech Stack

  • Python, FastAPI, BeautifulSoup, Requests
  • MySQL for persistent storage
  • Elasticsearch for fast, advanced search
  • APScheduler for periodic crawling
  • Docker for containerized deployment

⁠🚀 Example Endpoints

MethodEndpointDescription
GET/search?book_name=Harry%20PotterSearch books in DB/ES
GET/crawlTrigger full crawl
GET/fetch_savanisFetch books from Savanis
GET/fetch_textbookcentreFetch books from TBC
GET/image-proxy?url=...Proxy book images

⁠🐳 Running with Docker

docker run -d \
  -p 8000:8000 \
  your-dockerhub-username/book-price-scraper

⁠📜 License

MIT License – feel free to use and modify this project as you please.

Tag summary
Recent tags
Content type
Image
Digest
sha256:7e2202aa8…
Size
125.5 MB
Last updated
over 1 year ago
docker pull b1gb01/scrapper-backend:latest