Created
February 8, 2015 20:45
-
-
Save breadchris/c025e5a139b402e14010 to your computer and use it in GitHub Desktop.
A python one liner to return all trending repos on Github
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
print["https://github.com%s"%x[9:-1]for x in __import__('re').findall('<a href="/[a-zA-Z0-9_]+/[a-zA-Z0-9_]+">',__import__('urllib2').urlopen("https://github.com/trending").read())if "/site/" not in x] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment