size_categories:1M<n<10M source_datasets:Hacker News language:en license:cc-by-nc-sa-4.0 hacker news region:us
---
license: cc-by-nc-sa-4.0
language:
- en
tags:
- hacker news
pretty_name: Hacker News stories dataset
size_categories:
- 1M<n<10M
source_datasets:
- Hacker News

---

# Hacker News Stories Dataset

This is a dataset containing approximately 4 million stories from Hacker News, exported to a CSV file. The dataset includes the following fields:

-    `id` (int64): The unique identifier of the story.
-    `title` (string): The title of the story.
-    `url` (string): The URL of the story.
-    `score` (int64): The score of the story.
-    `time` (int64): The time the story was posted, in Unix time.
-    `comments` (int64): The number of comments on the story.
-    `author` (string): The username of the person who posted the story.

## Accessing the Dataset

The dataset can be accessed through [Hugging Face Datasets](https://huggingface.co/datasets/julien040/hacker-news-posts). You can download the dataset in CSV format or use the Hugging Face Datasets library to load the dataset directly in your Python code.

## License

The dataset is made available under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).

## Disclaimer

The dataset is provided as is, without warranty of any kind, express or implied. The owner of the dataset makes no representations or warranties, express or implied, regarding the dataset or its use. The owner of the dataset will not be liable for any damages arising out of or in connection with the use of the dataset.

## Updates

The dataset will be updated regularly to include new stories from Hacker News.