Skip to content

Instantly share code, notes, and snippets.

@thekindlyone
Created July 14, 2014 00:54
Show Gist options
  • Save thekindlyone/b39acb4959ee8ebcdb2c to your computer and use it in GitHub Desktop.
Save thekindlyone/b39acb4959ee8ebcdb2c to your computer and use it in GitHub Desktop.
In [1]: import webbrowser,re
In [2]: for sub in ('http://www.reddit.com/r/'+subreddit for subreddit in (match.group(1) for match in [re.search('Chaouche: (.+)',line) for line in open('subreddits.txt').read().split('\n')])): webbrowser.open(sub)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment