Skip to content

Instantly share code, notes, and snippets.

@amacinho
Created June 24, 2012 15:21
Show Gist options
  • Save amacinho/2983664 to your computer and use it in GitHub Desktop.
Save amacinho/2983664 to your computer and use it in GitHub Desktop.
Twitter streaming via curl
# Common initialization to all commands below. Change USERNAME and PASSWORD accordingly.
export user=USERNAME
export pass=PASSWORD
#Sample (gardenhose or spritzer based on your access levels)
curl -3 --verbose -u$user:$pass https://stream.twitter.com/1/statuses/sample.json > /dev/null
# Firehose
curl -3 --verbose -u$user:$pass https://stream.twitter.com/1/statuses/firehose.json > /dev/null
# Firehose with compressed stream, check content-encoding in response header to make sure you're receiving gzipped stream.
curl -3 --compressed --verbose -u$user:$pass https://stream.twitter.com/1/statuses/firehose.json > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment