rocca commited on
Commit
f6cf74b
1 Parent(s): 98430c0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -0
README.md CHANGED
@@ -1,3 +1,13 @@
1
  ---
2
  license: mit
3
  ---
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
  ---
4
+
5
+ The `post-data-by-subreddit.tar` file contains 5000 gzipped json files - one for each of the top 5000 subreddits (as roughly measured by subscriber count and comment activity). Each of those json files (e.g. `askreddit.json`) contains an array of the data for the top 1000 posts of all time.
6
+
7
+ Notes:
8
+ * I stopped crawling a subreddit's top-posts list if I reached a batch that had a post with a score less than 5, so some subreddits won't have the full 1000 posts.
9
+ * No posts comments are included. Only the posts themselves.
10
+ * See the example file `askreddit.json` in this repo if you want to see what you're getting before downloading all the data.
11
+ * The list of subreddits included are listed in `top-5k-subreddits.json`.
12
+ * NSFW subreddits have been included in the crawl, so you might have to filter them out depending on your use case.
13
+ * The Deno scraping/crawling script is included as `crawl.js`, and can be started with `deno run --allow-net --allow-read=. --allow-write=. crawl.js` once you've installed Deno and have downloaded `top-5k-subreddits.json` into the same folder as `crawl.js`.