Get tweets with a specific hashtag


#1

I want to get tweets with a specific hashtag using Streaming Api. I try this command line: “curl -d @words https://stream.twitter.com/1/statuses/filter.json -username:psw” when words is a text file containing the string track=#hastTag. Is it right? How can I use my Application Access token and Consumer key instead of username and password?


#2

You can use Oauth to login to public streams. It will be the only auth method once the v1 of the API is retired. You will still us the track=term to follow certain hashtags.

https://dev.twitter.com/docs/streaming-apis/connecting#Authentication


#3

Finally I decide using Twitter4j API. It’s very useful!