r/pushshift • u/Watchful1 • Feb 20 '23
[ Removed by Reddit ]
[ Removed by Reddit on account of violating the content policy. ]
33
Upvotes
r/pushshift • u/Watchful1 • Feb 20 '23
[ Removed by Reddit on account of violating the content policy. ]
2
u/[deleted] Feb 21 '23 edited Feb 21 '23
I was just realizing that I needed a better way to manipulate the pushshift dumps, so this is extremely helpful. I do have one question about how you built out your script though. I had been told a long time back that you use multiproc for cpu-bound operations and multithread for IO bound operations. With every other large dataset operation I've tinkered with in the past, I always used multithreading. What steered you towards using multiprocessing here?
Edit: Also kind of curious how long it took you to complete this (approximately) and what kind of hardware you were using.
2
u/joaopn Feb 21 '23
Very cool. I had arrived at a slightly higher value (13592374) by doing a full outer join on SQL. Is your code also counting subreddits that e.g. appear in comments but not submissions?
One comment though: from these 13.5M subreddits about 9.5M (9501201 here) start with `u_`. These are for profile posting and it is a bit debatable if they are "real" subreddits. They also contribute to a pretty small fraction of all content.
1
u/verypsb Mar 26 '23
Thanks for the resources! One related question: is there any data about the creation of a subreddit by time? It would be a list of subreddits that were created on X date.
1
u/CoolFlamingo Mar 29 '23
Thanks for sharing this! One question: if I wanted to add the description of each subreddit I would have to query for each of them individually right?
1
u/chaseoes May 04 '23
I'm assuming this includes deleted/suspended/etc subreddits and we need to do additional validation on our end to make sure the subreddit still exists?
1
u/HQuasar Feb 21 '23
Great resource. Thanks.
1
u/[deleted] Feb 21 '23
[removed] — view removed comment