Last active
December 10, 2015 00:48
-
-
Save twneale/4353639 to your computer and use it in GitHub Desktop.
Bumble from the shell!
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
import requests | |
def bumble(text): | |
url="http://smokehouse.sunlightlabs.org/action" | |
requests.get(url, params=dict(mode='bumble', message=text)) | |
print 'bumbled: %r' % text | |
if __name__ == '__main__': | |
import sys | |
if len(sys.argv) < 2: | |
print 'Usage: python bumble.py "NEVER GONNA GIVE YOU UP"' | |
else: | |
bumble(sys.argv[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment