CoolFace
Datasetpublic

TiaDay/books-to-scrape-page1

Books to Scrape – Page 1 Dataset Summary Book records scraped from the first page of the Books to Scrape demo site.I created this dataset for a class assignment to practise web scraping, pandas, and publishing a dataset to the Hugging Face Hub. Data Collection Source: https://books.toscrape.com/ (public test site for scraping practice) Method: requests.get("https://books.toscrape.com/catalogue/page-1.html") Parsed with BeautifulSoup, selecting each… See the full description on the dataset page: https://huggingface.co/datasets/TiaDay/books-to-scrape-page1.

sourceHugging Facemitupdated 11mo agoView on Hugging Face
0likes4downloads
Dataset Card

Books to Scrape – Page 1

Dataset Summary

Book records scraped from the first page of the Books to Scrape demo site. I created this dataset for a class assignment to practise web scraping, pandas, and publishing a dataset to the Hugging Face Hub.

Data Collection

  • —Source: https://books.toscrape.com/ (public test site for scraping practice)
  • —Method: requests.get("https://books.toscrape.com/catalogue/page-1.html")
  • —Parsed with BeautifulSoup, selecting each <article class="product_pod">.

Columns

Original scraped fields:

  • —title
  • —price_text
  • —availability_text
  • —rating_text

Augmented / derived fields:

  • —price_gbp – numeric price in GBP
  • —in_stock – True if availability contains “In stock”
  • —rating_numeric – star rating mapped to 1–5
  • —is_expensive – True if price_gbp > 30
  • —title_length – length of the title string

Intended Use & Limitations

  • —For educational use only (learning scraping and data processing).
  • —Small demo dataset from a fake site – not suitable for real analysis or production models.

Licensing & Compliance

  • —Data originates from the public “Books to Scrape” demo website.
  • —No personal or sensitive information is included and no login was required.
  • —Processed CSV and this documentation are released under the MIT license.