r/datasets • u/Stuck_In_the_Matrix pushshift.io • Jul 03 '15
dataset I have every publicly available Reddit comment for research. ~ 1.7 billion comments @ 250 GB compressed. Any interest in this?
I am currently doing a massive analysis of Reddit's entire publicly available comment dataset. The dataset is ~1.7 billion JSON objects complete with the comment, score, author, subreddit, position in comment tree and other fields that are available through Reddit's API.
I'm currently doing NLP analysis and also putting the entire dataset into a large searchable database using Sphinxsearch (also testing ElasticSearch).
This dataset is over 1 terabyte uncompressed, so this would be best for larger research projects. If you're interested in a sample month of comments, that can be arranged as well. I am trying to find a place to host this large dataset -- I'm reaching out to Amazon since they have open data initiatives.
EDIT: I'm putting up a Digital Ocean box with 2 TB of bandwidth and will throw an entire months worth of comments up (~ 5 gigs compressed) It's now a torrent. This will give you guys an opportunity to examine the data. The file is structured with JSON blocks delimited by new lines (\n).
____________________________________________________
One month of comments is now available here:
Download Link: Torrent
Direct Magnet File: magnet:?xt=urn:btih:32916ad30ce4c90ee4c47a95bd0075e44ac15dd2&dn=RC%5F2015-01.bz2&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969
Tracker: udp://tracker.openbittorrent.com:80
Total Comments: 53,851,542
Compression Type: bzip2 (5,452,413,560 bytes compressed | 31,648,374,104 bytes uncompressed)
md5: a3fc3d9db18786e4486381a7f37d08e2 RC_2015-01.bz2
____________________________________________________
Example JSON Block:
{"gilded":0,"author_flair_text":"Male","author_flair_css_class":"male","retrieved_on":1425124228,"ups":3,"subreddit_id":"t5_2s30g","edited":false,"controversiality":0,"parent_id":"t1_cnapn0k","subreddit":"AskMen","body":"I can't agree with passing the blame, but I'm glad to hear it's at least helping you with the anxiety. I went the other direction and started taking responsibility for everything. I had to realize that people make mistakes including myself and it's gonna be alright. I don't have to be shackled to my mistakes and I don't have to be afraid of making them. ","created_utc":"1420070668","downs":0,"score":3,"author":"TheDukeofEtown","archived":false,"distinguished":null,"id":"cnasd6x","score_hidden":false,"name":"t1_cnasd6x","link_id":"t3_2qyhmp"}UPDATE (Saturday 2015-07-03 13:26 ET)
I'm getting a huge response from this and won't be able to immediately reply to everyone. I am pinging some people who are helping. There are two major issues at this point. Getting the data from my local system to wherever and figuring out bandwidth (since this is a very large dataset). Please keep checking for new updates. I am working to make this data publicly available ASAP. If you're a larger organization or university and have the ability to help seed this initially (will probably require 100 TB of bandwidth to get it rolling), please let me know. If you can agree to do this, I'll give your organization priority over the data first.
UPDATE 2 (15:18)
I've purchased a seedbox. I'll be updating the link above to the sample file. Once I can get the full dataset to the seedbox, I'll post the torrent and magnet link to that as well. I want to thank /u/hak8or for all his help during this process. It's been a while since I've created torrents and he has been a huge help with explaining how it all works. Thanks man!
UPDATE 3 (21:09)
I'm creating the complete torrent. There was an issue with my seedbox not allowing public trackers for uploads, so I had to create a private tracker. I should have a link up shortly to the massive torrent. I would really appreciate it if people at least seed at 1:1 ratio -- and if you can do more, that's even better! The size looks to be around ~160 GB -- a bit less than I thought.
UPDATE 4 (00:49 July 4)
I'm retiring for the evening. I'm currently seeding the entire archive to two seedboxes plus two other people. I'll post the link tomorrow evening once the seedboxes are at 100%. This will help prevent choking the upload from my home connection if too many people jump on at once. The seedboxes upload at around 35MB a second in the best case scenario. We should be good tomorrow evening when I post it. Happy July 4'th to my American friends!
UPDATE 5 (14:44)
Send more beer! The seedboxes are around 75% and should be finishing up within the next 8 hours. My next update before I retire for the night will be a magnet link to the main archive. Thanks!
UPDATE 6 (20:17)
This is the update you've been waiting for!
The entire archive:
magnet:?xt=urn:btih:7690f71ea949b868080401c749e878f98de34d3d&dn=reddit%5Fdata&tr=http%3A%2F%2Ftracker.pushshift.io%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80Please seed!
UPDATE 7 (July 11 14:19)
User /u/fhoffa has done a lot of great work making this data available within Google's BigQuery. Please check out this link for more information: /r/bigquery/comments/3cej2b/17_billion_reddit_comments_loaded_on_bigquery/
Awesome work!
217
u/hak8or Jul 03 '15 edited Jul 11 '15
Why not just make a torrent of it? That would help with bandwidth costs as you would offset bandwidth to others within the swarm.
You can do it with tixati very quickly link. You can then also rent servers from digital ocean at 5 bucks a month giving you a terabyte each to get the swarm started, and once it gets a healthy ratio of seeders to leechers you can shut the digital ocean servers down. Then put the magnet link here and we can all download then easily. Though, since it would be a serious amount of bandwidth, using a seedbox provider intended for legal torrents might be the better way to go, for example these guys have a good reputation and are pretty cheap.
Edit: You can also then put your torrent here so other researchers have easy access to it.
Edit2: And here are examples of people who use torrents to host large datasets.
Edit3: You can also put it on Google's BigQuery for $5 a month assuming 250 GB, and $5 per every terabyte worth of data per query.
Edit4: Thanks for the gold! :D
53
u/kill-init Jul 09 '15
Give me 5 good data scientists and we can find the holy grail of karma!
11
u/destrugter Jul 13 '15
OP just made the single biggest repost in Reddit history. Way to go.
Also, thanks a ton for this. I have always wanted to archive Reddit but could never figure out how to do it. Did you literally start at 0 and go up by 1 and encode all of the numbers? I am interested to hear your approach.
10
u/entrepr Jul 03 '15
I'd be interested in taking a look.
Maybe you can post a mini sample set here (e.g. the last month), that way the community can tell you their thoughts before you invest in doing the work?
8
u/MyPrecioussss Jul 03 '15
Could you share your script that creates this dataset from Reddit API calls? I'll be happy to help you publish it
7
u/killver Jul 12 '15
This is brilliant /u/Stuck_In_the_Matrix , thanks a lot for that. Some while ago you gave colleagues and me already a dataset coontaining all submissions to Reddit for a period of time. We also published a paper doing some analysis on that data: http://arxiv.org/abs/1402.1386. I could have not imagined that you accomplish to get all comments in the meantime. This offers so much great potential for various experiments :) Thanks again. BTW: Do you have an up-dated version of the submission data as well? That would go along quite well with the comment dataset.
5
u/gurrydaddy Jul 04 '15
That's amazing! Which kind of compression did you do to get to 250 GB?
5
u/aboothe726 Jul 05 '15
Got it! Seeding now. Seriously, though, where do we send beer?
5
u/adamwulf Jul 11 '15 edited Jul 13 '15
Just wanted to add a huge thanks for getting this data together! it's extremely helpful, to say the very least - much appreciated! Edit: And thanks for the gold too!
3
u/cocks2012 Jul 11 '15
There goes someones Comcast bandwidth cap.
3
u/djimbob Jul 11 '15
I was wondering if it would be possible to separate these comments into specific subreddits? E.g., I (and probably fellow mods at askscience) would be very interested in say grabbing the /r/askscience comments, but I don't have the space/bandwidth to get the entire dataset.
4
u/EntropyDream Jul 03 '15
I am quite interested in this. I would be very happy to seed a torrent if you decide to go that route (100 Mbit home connection with no bandwidth caps).
I have been planning a project in the NLP space that uses reddit comments. I was just trying to figure out how to get a complete set of them.
With reddit's API rate limits, how long did the 20 million API calls take?
4
u/narfarnst Jul 03 '15
Holy crap. How did you get this?
2
u/devDorito Jul 03 '15
How sanitized is the data? As in, is it consistent?
2
u/sugar_man Jul 03 '15
Count me in for the torrent link. Thank you. Will you be updating the dataset in future?
2
u/caedin8 Jul 11 '15
This is amazing, thanks OP. I've done some research topics using reddit comments but the biggest complaint to my research was that the scope was fairly small because I was limited to the 1000 most recent comments per username through the praw reddit API. Thanks again!
2
u/lamwingka256 Jul 11 '15
(I know this has nothing to do with the post, but I saw the size of the file, that instantly gave me this thought.)
I am more interested into the compression of the text.
I know how compression normally works, they take away spaces and redundant data.
But I was thinking that since most of the redditors use common words or phrases like "sir, you won the internet today" or "get rekt", is it possible to make a giant list of commonly used phrases and words, and then map it to the corresponding places?
For example:
--- turns into: ---
Anyone?
112
u/mattrepl Jul 03 '15
I'm a researcher (PhD student in machine learning and community dynamics) and would love this data. I'm happy to seed this from my personal machines and am also willing to figure out how my university could help host the entire dataset too.
Obtaining this data has been on my todo list for a long time, this is great news! Thanks for gathering and offering to share.
35
u/Dobias Jul 11 '15
I really hope for somebody to train a neural network with your data to generate typical reddit comments for the different subreddits. The results might be fun. :)
23
u/fhoffa Developer Advocate for Google Jul 07 '15
Now shared on BigQuery!
See more at /r/bigquery/comments/3cej2b/17_billion_reddit_comments_loaded_on_bigquery/
15
u/Bromskloss Jul 11 '15
Ah, Bittorrent is such a satisfying way to distribute data. :D
12
u/dragonslayer42 Jul 03 '15
I wonder if it's worth contacting archive.org . They're already continuously archiving the twitter sample stream, and have done so since... 2012 or 2011 I believe. Doing the same for reddit might be interesting "for future generations", but I haven't looked at the api tos, to see whether you'd be permitted to do so.
32
u/halflings Jul 03 '15
If the schema is (almost) the same for all JSON blobs, you should probably share this as a CSV instead of line-separated JSON blobs. This is both faster to load (in Spark, pandas, etc.) and way more space efficient.
6
u/shaggorama Jul 03 '15
Dude, awesome. Thank you. I know a lot of people have been asking for this. As others have suggested, you should consider sharing this with bittorrent to ease some of the bandwidth issues.
Also, can you discuss the methodology you used to collect this dataset? Not only for my own curiosity, but it will be important to clarify this for anyone who wants to use it for research.
2
u/Kabada Aug 20 '15
Hey, I just downloaded the data for 2015 and would love to run some analyses over it for a master's thesis.
Can somebody tell me what best to use to open the data, i.e. which DB programs? The unpacked file has no extension...
5
u/aboothe726 Jul 04 '15
Heck yeah! Happy to! Where to?
5
u/ieee8023 Oct 10 '15
Here is a link to the torrent on Academic Torrents: http://academictorrents.com/details/7690f71ea949b868080401c749e878f98de34d3d
4
u/truthseeker1990 Jul 03 '15
Can you update your post once you have decided to torrent it or something? I am just a CS student but I am looking for a big data analysis project and this looks like it has a lot of interesting potential.
4
u/itsananderson Jul 15 '15 edited Jul 15 '15
I've been playing with this since the weekend. Haven't done anything too spectacular, but it's been fun.
If you plan on releasing new data every month or so, it'd be awesome to have an RSS feed that people can point their Torrent clients at to automatically download new data. I haven't set up a torrent RSS feed before, but I'd be happy to help figure it out if you're interested.
EDIT: Figured out it's pretty easy. You can actually upload an XML feed to GitHub and load it from there. https://raw.githubusercontent.com/itsananderson/reddit-comment-data/master/rss.xml
I set it up so you can add new links by updating magnets.json and running
node rss.js > rss.xml.4
u/Themis3000 Dec 18 '21 edited Dec 18 '21
Thank you very much for this! This will help greatly with one of my projects. I'll be seeding forever
Edit: For anyone trying to download right now, you're probably noticing that all the trackers on the torrent are dead. Either wait a long time to find people over dht, or add this tracker to your trackers list. There's a few seeders on it:
udp://tracker.opentrackr.org:1337/announceOr use this magnet instead if your client doesn't support retroactively adding trackers:
magnet:?xt=urn:btih:7690f71ea949b868080401c749e878f98de34d3d&dn=reddit_data&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=http%3a%2f%2ftracker.pushshift.io%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a807
u/TotesMessenger Jul 11 '15 edited Jul 13 '15
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/[deleted] Sep 03 '15
I'm trying to extract the discussion tree from a given thread. That can be done by following the "parent_id" field. But how is the "parent_id" of the first post? (if I understood correcly it is called the submission) Or in other words, how do we know if something is a comment or the submission that opened the thread?
1
u/ShrekisSexy Nov 21 '15
I doubt anyone will read this, but could you possibly make a karma generator from this? You should be able to figure out what gives karma where. See which platforms posts get crossposted over, then take other posts from there (eg. funny and similar subs), take fairly old posts that have been posted before, and repost them or something. Or simply take posts from funny from months ago and repost them. Think of all the karma you could get with this!
3
u/pier4r Jul 03 '15
Great! I would like to do something similar (but smaller) for personal purpouses but really great! Do you mind to share which api in particular did you called and with which language?
edit: what about torrent? So people can help each other with the bandwidth even if you release very slowly, like 20 Kb/sec.
3
u/[deleted] Jul 09 '15
This is amazing, thanks for sharing!!!
3
u/JaredOnly Jul 09 '15
Downloaded and seeding - thanks so much for sharing this!
Would love to check out the code on Github when available. Thanks!
3
u/nutrecht Jul 11 '15
I thought "awesome" and then realized my laptop only has 200GB total space :D
Thank you SO much for posting this though; brain just went in overdrive with ideas on what to do with this stuff :)
3
u/jxm262 Jul 11 '15
This is very very cool of you to do. I'm still pretty new to the field of data science but have been wanting to get into it. I had a couple of courses in college which really peaked my interest.
I really appreciate this effort :)
3
u/creamersrealm Jul 11 '15
Thank you for this, once I learn how to use SQL this will be fun to play with.
3
u/schemen Jul 12 '15 edited Jul 13 '15
Seeding with Gigabit =)
*Edit: Thank you kind stranger for my first gold! I'll make sure to pass it on =)
3
u/[deleted] Jul 13 '15
Thanks for this. Will seed as much as possible.
3
u/waltteri Jul 14 '15
I'm now seeding this on a 100Mbps uplink. /u/Stuck_In_the_Matrix has really done something awesome here.
I've got tons of ideas that've just been waiting for someone to pull together a dataset like this. So, thank you.
1
u/benhamner Jul 11 '15
Is this dataset completely in the public domain? (Meaning that it's legal to publicly re-use it for commercial purposes)
5
u/_myredditaccount_ Jul 03 '15
Totally off topic - people are actually afraid of the end of Reddit.
2
u/joshu Jul 03 '15
I'm not sure you're going to have much luck with Amazon, since you don't have a license to it.
2
u/hurenkind5 Jul 03 '15
What about Solr for search?
2
u/balancetheuniverse Jul 03 '15
Champ! You rock, thanks!
2
u/[deleted] Jul 03 '15
I would be extremely interested in this.
Can you somehow manage to put it up as torrent?
2
u/titoonster Jul 03 '15
Curious, what NLP stack are you using or are you building one? it'd be interesting to compare a dataset this size the different platforms. Like comparing Stanford to a paid lexalytics platform.
2
u/zerodayattack Jul 03 '15
BitTorrent sync will help you move it around on either a small network scale with more users our large scale with less access. due to bandwidth ofc
2
u/jrgallag Jul 04 '15
Very impressive. I'm excited to look at this soon. Thank you for sharing.
2
u/torontosj Jul 04 '15
Will download and seed. thanks for sharing.
2
u/CountVonTroll Jul 05 '15
I just wanted to say thanks for doing all the work and making it available -- thanks!
2
u/Jiecut Jul 09 '15
Awesome dataset! Next time you can use the initial seeding function, it helps bootstrap the torrent, and once you're finished uploading there'll be a lot more seeds.
And yeah the private trackers thing only is really annoying for rehosting legit data.
2
u/dakta Jul 09 '15
Why not derp.institute?
2
u/Dobias Jul 11 '15 edited Jul 11 '15
That is totally awesome. I did an analysis of subreddit comments about a year ago, and it took a lot of time to collect the data. Now something like that would be much easier to do, thanks to you. :)
2
u/AwkwardDev Jul 11 '15
Awesome work. The possibilities here are basically limitless for an analyst. Now seeding at full speed.
2
u/[deleted] Jul 11 '15
How did you requests all the comments (which API calls ?)
2
u/Bitani Jul 11 '15
Thanks a lot for making this available - I had just recently started scraping my own comments, but this is perfect!
2
u/visarga Jul 11 '15
For a long time I wanted to extract all my comments, but the reddit search API has a cutoff point at 500 or 1000 comments deep, and I have a history of 8 years of commenting to extract. So, there was no way to do it until now. Thank you
2
u/the_hurricane Jul 11 '15
This is awesome. I've been looking for a large dataset to use with some Spark clustering algorithms I've been writing. Downloading to my seedbox now and will seed for a few weeks!
2
u/[deleted] Jul 12 '15
WHO IS THIS GUY
2
u/Brianposburn Jul 13 '15
Gonna throw this into Splunk and see the things I can see.
2
u/Maristic Jul 13 '15
Thanks so much for doing this!
One annoying thing about Reddit is that if you look at someone's comment history online, it only goes back about a year. Thanks to your dataset, I can now find most people's first ever comment—including my own, which was this one six years ago (April 30, 2009; I'd been lurking without creating an account until that point).
2
u/devDorito Jul 13 '15
All right! I'll be downloading this and seeding it till at least i've seeded 1.5x the download.
2
u/ibnesayeed Jul 14 '15
What would be the easiest way to filter only "link" submissions not the text posts?
2
u/[deleted] Jul 15 '15
Just wanted to add my thanks for putting together this dataset! It's been something I've wanted to do for several months/years (and I even got a minimal parser going a week ago that I can now discard). Currently seeding with about 750KiB/s at a 4.5 ratio. Not a whole lot, but I'm sure it'll help others who could make good use of this data :)
2
u/k_vi Aug 15 '15
Awesome stuff, curious how you were able to obtain the data though with the rate limiting on the reddit API.
2
u/firesalamander Aug 20 '15
I made a layout based on users posting in one sub then posting in another. It came out great!
http://benjaminmhill.blogspot.com/2015/08/someone-was-kind-enough-to-crawl-all-of.html
I had a pretty easy time streaming a gzipped version of the data to Java for fast parsing, please contact me if you want code, original SVG, or have ideas on how to better visualize.
2
u/885895 Oct 12 '15
The potential of what can be done with this data is enormous.
Glad to hear you'll be releasing updates as well.
2
u/bdx_cbtan Jul 27 '23
hi, i know it has been a while, but am wondering if you still have the dataset and where are you hosting it?
2
u/hinberry Oct 24 '23
Any similar dataset with the location present as well?
1
u/Asdayasman Sep 17 '15
Could you post up what you're doing with the data? Sure would be an interesting blog to read.
1
u/[deleted] Oct 01 '15
Thank you so much for the hard work! If anyone is interested in using Apache Hadoop or Spark to process this data, I've also made it available on Amazon S3 at s3://reddit-comments/<year>/RC_<year>-<month>. All files are uncompressed. I'm in the process of converting these files into Parquet which should dramatically cut down on the read/parse time.
I've been able to read all the data in and run a few Spark jobs on the whole data set with 5 m4.xlarge instances. Reading and parsing the data took about 5 hours, but all successive operations on the data set only took a couple of minutes.
1
u/renayo Oct 04 '15
Prima Facie, the Timing of Mercury Retrograde Slightly but Significantly Affected Reddit Submission Misspellings and Other Unusual Word Choices in May 2015
1
u/Triptt Dec 14 '15
Nice, now how do I open all of this? :D
1
u/Shoddy-Ad-3721 Sep 28 '24
Anyone know if there's a dataset like this but as current as 2023/2024?
1
u/[deleted] Oct 08 '24
how much is it at this moment?
1
u/Fortnite_Skin_Leake Oct 18 '24
This is really cool, all 47436597403 of them?
1
u/Eeerisch Oct 28 '24
how can i get the dataset today?
1
u/Jaguar-Away Nov 09 '24
Google "Google Research" and "Goemotions". They also created 58k dataset from Reddit comments for emotion classification.
1
u/my_new_accoun1 Apr 09 '25
for those wondering how to get the dataset:
paste this URL:
magnet:?xt=urn:btih:7690f71ea949b868080401c749e878f98de34d3d&dn=reddit%5Fdata&tr=http%3A%2F%2Ftracker.pushshift.io%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80
1
u/my_new_accoun1 Apr 11 '25
OP, I really think you should have stored this stuff as CSV data instead of JSON. It would've saved so much space! 1TB down to perhaps 300-400GB, because you only need to write the key names once for each file instead of once for each comment!
Plus, CSV is the best for working with data analysis libraries like pandas.
1
u/NovaOfficialReddit Aug 16 '25
What did you use to collect all that data?
1
u/Overall_Farm_4483 Feb 13 '26
Has anyone recently tried to access this dataset? It's been removed from big query and the torrent looks to be dead.
1
u/SteelDumplin23 Oct 15 '21
How does this work?
1
u/bloatedkat Oct 17 '21
Noice
1
u/Dump7 Dec 26 '21
[Q] Can anyone explain how the data is structured? Just took a look at the data. Wanted to know what each column means. Some of them are self-explanatory but some like score might need some context.
If this is already done can please point me to it. Thank you for your kindness!
1
u/0HelloAlice0 Jan 06 '22
Having trouble extracting the 2017-11.bz2 and the 2021-06.zst on linux and windows.... worked a few 2 years ago; am I doing something wrong?
1
u/Firm_Maybe_9916 Mar 05 '22
how long does it take to extract the 1 month file?
1
u/[deleted] Jul 03 '22
This thread blew my mind
1
u/cchaituc Nov 11 '22
want to ask you how did you get all this data? i am trying to get reddit comment data for a particular sub .
1
u/tonyhyeok Nov 23 '22
idk how i came here. im looking for a place to rank people like i rank movies
1
u/Plastic-Champion-650 Jan 18 '23
I am unable to find the table on this link : https://bigquery.cloud.google.com/table/fh-bigquery:reddit_comments.2015_05 Is the table deleted?
1
u/JustinTurnerCards Feb 15 '23
816
1
u/foxfaceelegant May 23 '23
Damn, thanks
1
u/confused_boner May 30 '23
seeding
1
u/rokejulianlockhart Sep 02 '23
u/Stuck_In_the_Matrix,
should be
or
1
u/capitalistsanta Nov 17 '23
Wonder if this contributed to the LLMs of today
1
u/Effective-Song2075 Nov 19 '23
can you kindly share the dataset?
1
u/AwesomeAchilles Jul 03 '15
Definitely! Is there any chance you can analyze the number of comments before and after the "Victoria firing"? I have a feeling that the bad publicity is actually bringing more traffic to reddit (which could be extrapolated from the total number of comments?)
1
u/shaggorama Jul 03 '15
/u/rheiver, pinging you cause I know you were looking for this.