Created
June 24, 2012 15:21
-
-
Save amacinho/2983664 to your computer and use it in GitHub Desktop.
Twitter streaming via curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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