Skip to content

Instantly share code, notes, and snippets.

@hectorip
Created July 12, 2014 17:12
Show Gist options
  • Save hectorip/3aecd83ee8c22307bd30 to your computer and use it in GitHub Desktop.
Save hectorip/3aecd83ee8c22307bd30 to your computer and use it in GitHub Desktop.
def fetchsamples():
url = "https://stream.twitter.com/1/statuses/filter.json"
parameters = {'track' : 'nedvsarg'}
response = twitterreq(url, "POST", parameters)
try:
for line in response:
print line.strip()
except Exception:
fetchsamples()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment