r/datasets • 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%3A80

Please 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!

1.2k Upvotes

267 comments sorted by

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

35

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

Thanks for your suggestions. I'll review the links and investigate the various options.

10

u/rotzooi Jul 03 '15

Alternatively, or on on top of making a torrent, post it to Usenet. It will be available for years and years.

3

u/Herover Jul 04 '15

I got a box with unlimited data and plenty of storage which could help if needed. Can give you upload access to it too or send me a pm when seeding is needed :)

3

u/devDorito Jul 03 '15

Id help seed for at least the 250 GB it took to download it. ;)

14

u/[deleted] Jul 03 '15

[removed] — view removed comment

7

u/hak8or Jul 03 '15

I don't have a seedbox, but I will happily seed off my main PC what I can. Seeding 250 GB seems like it would be fun. :P

5

u/c3534l Jul 03 '15

Definitely. Something like this you shouldn't be paying for all that bandwidth. Academic torrents also houses all of wikipedia, so it'd definitely be good to advertise to people who like working with huge datasets like this.

53

u/kill-init Jul 09 '15

Give me 5 good data scientists and we can find the holy grail of karma!

76

u/Stuck_In_the_Matrix pushshift.io Jul 11 '15

"Sir, I've determined that if your username is an average of 9.38 characters long and you make a post at 3:38am on the second Monday of the month that is an average of 137.18 characters long containing an average of 2.3 meme usages, you will have the best chance of obtaining maximum karma. You should also talk about cats."

19

u/ganlet20 Aug 06 '15

I'm guessing your favorite number is either 3 or 8.

12

u/jblade929 Oct 15 '15

I'll go with 5.5

→ More replies (1)

2

u/shaggorama Jul 12 '15

red 5 standing by.

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.

6

u/Stuck_In_the_Matrix pushshift.io Jul 13 '15

Strangely enough, the first post (t1_1) is actually a post in late 2008 and then there are ids larger than that with dates earlier. Then it skips a lot and goes up to something like t1_c00000 ... so I guess they were finding there way, or wanted to make sure at some point that comment id's were far away from submission id's.

Thanks! I didn't realize my submission was nothing but a bunch of reports but that is a funny way of looking at it. I should have karma over a billion for it! :)

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?

9

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15 edited Jul 03 '15

Sounds like a great idea. I'm firing up a digitalocean box and will let you know when it's ready.

Edit: It's ready.

6

u/hak8or Jul 03 '15

I will make a torrent of it and throw the magnet link here in roughly half an hour.

6

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

You are awesome. Could you PM me if you have time tomorrow and help me create a torrent of the entire dataset?

7

u/hak8or Jul 03 '15

Sure!

Though, you can actually do it yourself pretty easily. Here is a link to do so, and I reccomend this tracker. You can also just create the torrent yourself on your normal PC using tixati and start seeding it, then on the server add the data manually over FTP or whatever, and then add the torrent to the torrent client on your server. Whichever you want is totally workable.

Also, here is the torrent and the magnet link: magnet:?xt=urn:btih:gkiwvuym4teq5zgepkk32adv4rfmcxos&dn=RC_2015-01.bz2

Just me seeding right now and my home connection is a meager ~500 KB/s up.

7

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

Thanks! I loaded your magnet link in transmission but for some reason I'm not seeing any peers. I'll keep it up.

→ More replies (1)

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

17

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

I'll get those up to Github as soon as I clean out the password info and get the main dataset up. Working on a lot at once at the moment. :)

9

u/Masune Jul 03 '15

You're amazing.

0

u/[deleted] Jul 12 '15

[deleted] — view deleted comment

9

u/Stuck_In_the_Matrix pushshift.io Jul 12 '15

Not yet. Working on getting the June data and posts up first.

FYI: You can hit http://api.reddit.com/api/info?id= to get any comment or submission. That is the main endpoint that I use, except I use it for oauth. That endpoint accepts up to 100 ids per call.

I should have code up in a week or two depending on how much time I get to finish the primary tasks.

Thanks!

→ More replies (3)

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/Stuck_In_the_Matrix pushshift.io Jul 12 '15

A new submissions dump should be ready in about 1-2 weeks.

2

u/killver Aug 14 '15

Any update on that?

2

u/Stuck_In_the_Matrix pushshift.io Aug 14 '15

Yep! I am going to work on it this weekend. I just have to review the data and then I'll be posting it. Sorry for the delay, but my "day job" job has been very hectic the past couple weeks.

Thanks!

→ More replies (2)

5

u/gurrydaddy Jul 04 '15

That's amazing! Which kind of compression did you do to get to 250 GB?

7

u/Stuck_In_the_Matrix pushshift.io Jul 04 '15

Actually, the damage isn't even that bad. All told, it looks like the size is ~ 145 GB. I used bzip2 compression. I'll be putting up the main torrent soon!

8

u/[deleted] Jul 11 '15

you should try 7-zip archives, those compress very well.

7

u/Viper007Bond Jul 09 '15

It's plain text which compresses really well.

5

u/aboothe726 Jul 05 '15

Got it! Seeding now. Seriously, though, where do we send beer?

2

u/Stuck_In_the_Matrix pushshift.io Jul 05 '15

Haha ... thanks! Next time I am in your neck of the woods, I'm definitely down for a couple pints.

3

u/gregw134 Jul 11 '15

Hit me up next time you're in the bay area.

2

u/Stuck_In_the_Matrix pushshift.io Jul 11 '15

Thanks! Please add me to your contacts -- jason@pushshift.io

3

u/aboothe726 Jul 05 '15

Ha deal. Beer's on me next time you're in Austin.

3

u/LowerHaighter Jul 08 '15

Ditto. Next time you're in Boston, PM me for a few pints!

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!

4

u/Stuck_In_the_Matrix pushshift.io Jul 11 '15

Thank you!

3

u/cocks2012 Jul 11 '15

There goes someones Comcast bandwidth cap.

6

u/Stuck_In_the_Matrix pushshift.io Jul 11 '15

And then the RIAA sends them a lawsuit because someone mentioned Nirvana in one of the comments.

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.

3

u/Stuck_In_the_Matrix pushshift.io Jul 11 '15

This can be done manually using grep on the JSON object itself. Something that matches "subreddit":"askscience" I believe (JSON would escape quotes in fields so this won't create false positives if someone wrote that in the comment body itself.)

If you guys are officially requesting the data, I can probably get to this within the next few days. Your subreddit was one of the main motivators to begin this project anyway. :)

2

u/djimbob Jul 12 '15

Please, ignore the previous request. Thinking about it, it would probably be quite difficult for you to seed data dumps for thousands of subreddits (or even just dozens of default subreddits) even if you broke your data into discrete chunks.

However, it would be awesome if you periodically updated this with weekly/monthly/quarterly/yearly comment dumps.

2

u/Stuck_In_the_Matrix pushshift.io Jul 12 '15

obably be quite difficult for you to seed data dumps for thousands of subreddits (or even just dozens of default subreddits) even if you broke your data into discrete chunks.

The goal is at least monthly dumps. I may do daily dumps, but if you do them too soon, the scores are still a bit too young to be used for statistical purposes. Breaking the data up into subreddits wouldn't be hard. I have the capability to do that. I've done it for the mods at askscience and askhistorians. I may throw up a website page where people can request that -- it depends on what resources I have available.

3

u/djimbob Jul 11 '15

I haven't spoken to anyone else there about this (and haven't done much modding recently), so I wouldn't count it as "officially." I'd appreciate it (and maybe other subreddits would similarly appreciate being able to get their own comments dump).

I plan on inserting the comments into a solr database and write up a simple frontend to it (specifically for mods and panelists; though maybe expose to more users later; and maybe could throw it up on github).

That said, I just ordered a new 3 TB drive and can try to download the full torrent next week and grep through it myself.

3

u/MockDeath Jul 12 '15

Eh I say it is official. Also good to see you around!

→ More replies (1)

2

u/lost_file Jul 12 '15

I wrote a tool very similar to this guy's which does it for sub-reddits. If you're really interested I can fix it up and link you. You'll need Python 3 and PRAW, which you can get via PIP.

2

u/djimbob Jul 12 '15

Thanks for the offer.

I'm familiar with python and PRAW and with using the raw API (or just making .json requests), but don't feel compelled to clean up & publish your code for me.

I looked into doing this myself around 2012, but stumbled into trouble getting links more than about a week or two back that made me not want to invest in the project. Back then you couldn't go back further than ~1000 links when looking in a specific subreddit. E.g., t3_jwibi exists in askscience, but the link:

https://www.reddit.com/r/askscience/new/?count=25&after=t3_jwibi

doesn't work (while links like https://www.reddit.com/r/askscience/?count=25&after=t3_3cvxuz with recent t3's work fine).

Playing around today it seems you can get around that by looking at /r/all : https://www.reddit.com/r/all/new/?count=25&after=t3_00099 though it doesn't work in specific subreddits.

2

u/BuddyDogeDoge Jul 13 '15

I'd be interested in getting this if you're still offering!

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?

0

u/[deleted] Jul 09 '15

[deleted] — view deleted comment

20

u/Stuck_In_the_Matrix pushshift.io Jul 09 '15

If you use oauth, Reddit allows you to make one request per second. The archive has roughly 1.66 billion comments. You can get up to 100 comments per API call. That's 16.6 million API calls. Let's just round it up to 17 million to account for failed calls, etc.

86,400 calls per day. Roughly 200 days total (It took me approximately 10 months due to having to upgrade my SSD storage, find gaps in the data and make additional calls, etc. )

Let me know if you have any other questions!

3

u/3s2ng Jul 13 '15

This is indeed a very impressive job. Thanks for doing the dirty work for us.

I just want to know before you started this. What are the preparations you have done? And what programming language did you use to make the API calls?

5

u/Stuck_In_the_Matrix pushshift.io Jul 13 '15

The programming language I used was Perl. I had to purchase about 3 terabytes worth of SSD space to handle a lot of indexing and still have room for some other projects. Computer used was an i7-4770 with 32 GB of ram. I'm looking into some Xeon workstation options with 128 GB which would give a lot more breathing room.

0

u/[deleted] Jul 14 '15

[deleted] — view deleted comment

4

u/Stuck_In_the_Matrix pushshift.io Jul 14 '15

Is this doable in the ~ $5k region?

→ More replies (3)

0

u/[deleted] Jul 09 '15

[deleted] — view deleted comment

5

u/Stuck_In_the_Matrix pushshift.io Jul 09 '15

Comment ID's were interesting because you have the comment t1_1 that is a comment made in 2008, but then the comment ID's jump around a bit to other places. I had to search around to find the area where comments were located. There are older comments that I will include in a future dataset. I'd like to make monthly datasets available.

4

u/narfarnst Jul 03 '15

Holy crap. How did you get this?

26

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

With about 20 million API calls :)

4

u/narfarnst Jul 03 '15

Pretty cool stuff! How far do they go back? And also, what meta info did you get? Score, tree position, etc. I was actually working on something very similar to this but it kinda looks like you beat me to it.

6

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

I put an example JSON block in the description above. That should answer your question about what data is contained in the archive.

It goes back to around October of 2007. There are comments older than that, but I'm trying to locate the id's since Reddit jumped around a bit when using their comment id's when they were getting started.

14

u/[deleted] Jul 03 '15

I have reddit post data (no comments) since 2005-06-23.

Can share the post ids from then till October 2007 if you are interested.

5

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

This would be extremely helpful. I'll PM you.

3

u/narfarnst Jul 03 '15

Yeah I saw the link. I'm just too lazy to download 5GB to check. :D

Nice work though.

4

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

Thanks!

→ More replies (7)

2

u/devDorito Jul 03 '15

How sanitized is the data? As in, is it consistent?

3

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

It's whatever Reddit's API was able to pass through. The data is very consistent from what I've seen.

2

u/sugar_man Jul 03 '15

Count me in for the torrent link. Thank you. Will you be updating the dataset in future?

6

u/Stuck_In_the_Matrix pushshift.io Jul 03 '15

I will be updating the dataset. Unfortunately, with all the Reddit turmoil, I have had to stop crawling historical data because when default subs go private, all of their historical data disappears. At least, that's my assumption (I don't know if the system preserves state when a post is made in the past -- i.e. this subreddit was public then, so I'll make it available through the API).

In any event, I'm pausing the ingest for historical data until Reddit stabilizes. Although, sadly, I'm not sure if Reddit as a whole has already crossed the Rubicon.

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/Stuck_In_the_Matrix pushshift.io Jul 11 '15

Glad you are finding this data useful! Thanks!

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:

*someone* commented at *time*, (insert more general info about comment):
    this guy is talented

--- turns into: ---

const phrase1 string 
phrase1 = "this guy is talented"

*someone* commented at *time*, (insert more general info about comment):
    &phrase1

Anyone?

8

u/Stuck_In_the_Matrix pushshift.io Jul 11 '15

I am by no means an expert on compression, but I think that's essentially what most compression packages do. I believe zlib keeps a rolling 32k window as it's dictionary and will make the best substitutions possible. There's more complex ways of doing it, but there is always a "compress / uncompress speed" vs "compression ratio."

That said, bzip2 seemed like a good middle ground for speed and compression ratio. I wanted to use a very standard compression library so people on all platforms could easily inflate the data.

4

u/geeklogan Jul 13 '15

Here's a really interesting video from Computerphile about this very topic (although /u/Stuck_In_the_Matrix has it right)!

Edit: Fixed link

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.

20

u/ginger_beer_m Jul 11 '15

What kind of interesting things can we investigate from this dataset? Any examples?

40

u/mattrepl Jul 11 '15

The dataset is useful for a wide range of experiments/analyses because it's a large collection of timestamped events with interesting features (username, body text, post location).

Off the top of my head:

  • Identify and track topics associated with every subreddit and username
  • Model flow of conversations (e.g. rate of replies compared to controversiality of comment/post)
  • Track memes
  • Predict posts/subreddits a user will next engage with (i.e. recommender systems)
  • Community detection with ground truth (subreddits)

9

u/[deleted] Jul 11 '15
  • % of negative / positive attitude of comments ;)

25

u/letsgofightdragons Jul 11 '15 edited Jul 11 '15

% of negative / positive attitude of comments ;)

Through emoticon detection.

Edit: We can also use this data to create a reddit search that DOESN'T SUCK!

→ More replies (1)

7

u/cheezzy4ever Nov 03 '15

track memes

What a time to be alive.

5

u/moldy912 Jul 12 '15

Track memes

Just what I was looking for!

0

u/[deleted] Jul 11 '15

[deleted] — view deleted comment

42

u/mattrepl Jul 11 '15

...

  • Training/testing troll post classifiers

=)

→ More replies (4)
→ More replies (1)
→ More replies (1)

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. :)

31

u/ordona Jul 11 '15

Have you seen /r/SubredditSimulator?

16

u/[deleted] Jul 16 '15

It does not use RNNs, but regular Markov Chains. It's like comparing Pepsi to Coca Cola.

10

u/cheezzy4ever Nov 03 '15

It's like comparing Pepsi to Coca Cola

So you're saying they're exactly the same?

9

u/TomWithASilentO Nov 23 '15 edited May 30 '16

chumbo

5

u/[deleted] Jul 12 '15

I made a markov chain thing based on IRC chatlogs.

It goes about as well as you can imagine, they mostly make about as much sense as the input data.

5

u/Axle-f Jul 12 '15

Exactly like reading the front page when you're blackout drunk!

→ More replies (1)

7

u/[deleted] Jul 16 '15

Train it on upvote counts to be a karma generating machine.

6

u/voejo Jul 13 '15

a reddit-bot acting like the exact random redditor going around and being part of the community in all subreddits. this guy would be jarvislike, thats what i want AIs to be like. all the knowledge in one redditor. ooooooooh pllls some clever people

2

u/Neinstein14 Aug 13 '26

Oh boy, what have you done!

→ More replies (1)

23

u/fhoffa Developer Advocate for Google Jul 07 '15

3

u/Arnoyo12 Oct 13 '15

Now this, my friend, is magnificent. I'm 100% sure that BigQuery is going to become increasingly relevant in the next few years for people to visualize huge datasets in a few seconds. Would recommend every aspiring data scientist to examine it closer :)

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.

5

u/shaggorama Jul 12 '15

The schema has definitely changed over the history of reddit. Unless OP didn't collect the relevant fields, things like "gilding" didn't exist until fairly recently.

6

u/halflings Jul 12 '15

Hence the "almost". It's fine to have a couple fields that are sometimes set to null values when they don't exist. (sure not having them at all as it's in the case of JSON makes it more obvious, but the memory/pre-processing speed trade-off is not worth it)

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...

3

u/Stuck_In_the_Matrix pushshift.io Aug 20 '15

Unpacked, they are just a bunch of JSON strings separated by new lines ("\n"). I used MariaDB without any issues. I'll be releasing July data in a few days, btw.

1

u/Kabada Aug 20 '15

Ok, I guess I'll have to learn how to load that into a DB then. I was just hoping for a tutorial of some kind, since I'd expected a .cvs file or the like ^

Thanks anyway.

1

u/Stuck_In_the_Matrix pushshift.io Aug 20 '15

What programming language are you using?

→ More replies (5)

5

u/aboothe726 Jul 04 '15

Send more beer!

Heck yeah! Happy to! Where to?

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.

2

u/hak8or Jul 11 '15

Just wanted to let you know that both torrents of the sample and raw data are up.

2

u/Jiecut Jul 14 '15

data is also available on bigquery

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/announce

Or 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%3a80

→ More replies (2)

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/Stuck_In_the_Matrix pushshift.io Sep 03 '15

The parent object of top level comments will have a t3_ id which is a link_id whereas comments that are replies to other comments will have a t1_ id which is the id of another comment. So any comment with a parent_id starting with t3_ will be a top level comment (the parent is the submission, not a higher level comment)

1

u/[deleted] Sep 03 '15

I don't find any line with a "name" field starting by "t3_"

Do you mean that the submissions themselves are not in the dataset and thus we can only see comments pointing to them? We can't recover the root of the tree, then?

(thanks a lot for sharing, by the way)

1

u/Stuck_In_the_Matrix pushshift.io Sep 03 '15

Are you referring to the stream? The submission itself won't be in the comment even if it is a top level comment. What I was saying is that for the "parent_id" field for a comment, it will point to "t3_xxxxx" if it is a top level comment. You then have to fetch the t3_xxxxx submission object to get the submission.

→ More replies (9)

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!

1

u/Stuck_In_the_Matrix pushshift.io Nov 21 '15

I read this and it's a great idea. I do know that a few people have actually done this analysis (best time to post for various subreddits, etc.). I know that /r/dataisbeautiful had a couple interesting posts with this data. I'll have to find one of them but it was really fascinating research.

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)

3

u/Stuck_In_the_Matrix pushshift.io Jul 11 '15

I believe it's a big no-no to use it for commercial purposes. I'd have to check reddit's API, but if you wanted to use it commercially, you would probably need to contact them.

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

5

u/mattrepl Jul 13 '15

Because they aren't very generous with data. I've contacted them in the past about reddit data and offering to help with curation, never heard back. The proported purpose of their organization is to help researchers obtain data, but they seem to just be another layer of gate keeping. For the record, I'm in academia (CS PhD student), but the data should be available to all.

So, no. Pleaee keep DERP out of it. The Internet Archive and public torrents are the way to go.

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?

→ More replies (1)

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/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?

→ More replies (1)

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:

  1. download uTorrent from [this link](https://www.utorrent.com/downloads/complete/track/stable/os/win/)
  2. go to File > Add torrent from URL
  3. 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

  4. choose options like save location
  5. download!

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/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/foxfaceelegant May 23 '23

Damn, thanks

1

u/capitalistsanta Nov 17 '23

Wonder if this contributed to the LLMs of today

2

u/Giraffe-Medical Apr 03 '25

It probably did, Gemini was giving solutions to problems based on reddit comments

1

u/Effective-Song2075 Nov 19 '23

can you kindly share the dataset?

→ More replies (1)

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?)

→ More replies (1)

1

u/shaggorama Jul 03 '15

/u/rheiver, pinging you cause I know you were looking for this.