Skip to content

Instantly share code, notes, and snippets.

@tylerharper
Created April 11, 2010 12:25
Show Gist options
  • Save tylerharper/362683 to your computer and use it in GitHub Desktop.
Save tylerharper/362683 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
"""
tug - twitter url generator
for now we only support atom feeds
"""
import urllib, urllib2
import sys
x = {'q':sys.argv[1]}
encoded_parameters = urllib.urlencode(x)
print 'http://search.twitter.com/search.atom?' + encoded_parameters
@tylerharper
Copy link
Author

very useful with wag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment