Code-Pile icon indicating copy to clipboard operation
Code-Pile copied to clipboard

LinusTechTip Programming Forum

Open PhungVanDuy opened this issue 3 years ago • 1 comments

Title

Dataset URL - LinusTechTip

Does the dataset exist in a scraped format? No

Description

This well-known programming forum, just scanned there have more than 10.000 topics from 2013

Procedure

  • [ ] Attempt to scrape topics from https://linustechtips.com/forum/20-programming/
  • [ ] Cleaning, duplicate, formating
  • [ ] Convert to lm_dataformat

Tests

Include a dummy_dataset.parquet file to test your code against. This dummy_dataset should include the columns for the data and metadata associated with the dataset, which will then be converted into the final format for language model consumption, along with an example row or rows that you can verify your code correctly collects. In addition to this file, include the unit test that evaluates your code against this dummy_dataset.

Give an example of the columns and data:

col1 col2 ....
row1 row1 ....

PhungVanDuy avatar Sep 30 '22 03:09 PhungVanDuy

Wrote a quick scraper for this, unsure of the format required, but this writes each page of a thread as JSON file per line.

https://gist.github.com/bentrevett/274db7de0258bab8adf235045344bed7

There's two types of threads:

  • Standard threads with comments
  • "Question" threads, in which each comment is a "suggestedAnswer", and also provides the "acceptedAnswer" (potentially useful for some form of QA data?)

bentrevett avatar Oct 27 '22 23:10 bentrevett