Created
May 14, 2015 03:46
-
-
Save git2samus/d9602b93bd1293d556fd to your computer and use it in GitHub Desktop.
get the list of default subreddits as a multisub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
default_json = requests.get('https://www.reddit.com/subreddits/default.json').json() | |
names = (child['data']['display_name'] for child in default_json['data']['children']) | |
print('http://www.reddit.com/r/{}'.format('+'.join(names))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment