Skip to content

Instantly share code, notes, and snippets.

@twneale
Last active December 10, 2015 00:48
Show Gist options
  • Save twneale/4353639 to your computer and use it in GitHub Desktop.
Save twneale/4353639 to your computer and use it in GitHub Desktop.
Bumble from the shell!
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