Skip to content

Instantly share code, notes, and snippets.

@RichardBronosky
Created December 22, 2011 07:21
Show Gist options
  • Select an option

  • Save RichardBronosky/1509344 to your computer and use it in GitHub Desktop.

Select an option

Save RichardBronosky/1509344 to your computer and use it in GitHub Desktop.
from pylibcurl import curl;
from private_settings import TWITTER_USERNAME, TWITTER_PASSWORD
url='https://stream.twitter.com/1/statuses/filter.json?track=@%s' % (TWITTER_USERNAME)
userpwd='%s:%s' % (TWITTER_USERNAME, TWITTER_PASSWORD)
while True:
c=curl.Curl(url=url, userpwd=userpwd);
c.perform()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment