Problem of the Day has a large overlap with the Reddit community. Let's put that overlap to use and create a program that counts the number of total subreddits. You can use this API https://www.reddit.com/dev/api#GET_subreddits_new to traverse the Reddit database.
Comments:
Kevin Benton - 9 years, 10 months ago
This takes forever to complete because of API rate-limiting. Here is a python solution that uses multiple coroutines to connect multiple times but the server is actually the limiting factor here:
reply permalink
Max Burstein - 9 years, 10 months ago
Yea since I don't think you can guess the hash it makes it tough to do in parallel.
reply permalink
Kevin Benton - 9 years, 10 months ago
Forgot to put the estimate this stopped (or got blocked at). 510149 subreddits.
Seems kinda low based on the ages of the ones that were going by in the output around 300k.
reply permalink