Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Hackernews Comments Dataset

A dataset of all HN API items from id=0 till id=41422887 (so from 2006 till 02 Sep 2024). The dataset is build by scraping the HN API according to its official schema and docs. Scraper code is also available on github: nixiesearch/hnscrape

Dataset contents

No cleaning, validation or filtering was performed. The resulting data files are raw JSON API response dumps in zstd-compressed JSONL files. An example payload:

{
  "by": "goldfish",
  "descendants": 0,
  "id": 46,
  "score": 4,
  "time": 1160581168,
  "title": "Rentometer: Check How Your Rent Compares to Others in Your Area",
  "type": "story",
  "url": "http://www.rentometer.com/"
}

Usage

You can directly load this dataset with a Huggingface Datasets library.

pip install datasets zstandard
from datasets import load_dataset

ds = load_dataset("nixiesearch/hackernews-comments", split="train")
print(ds.features)

License

Apache License 2.0.

Downloads last month
289