I am a student of Software Engineering, as part of research I do I have to work on a wide database of tweets.
I understood that the best way is to collect the streaming of all tweets for a certain period using curl
But I am having two problems:
- I can only use https://stream.twitter.com/1.1/statuses/sample.json. With https://stream.twitter.com/1.1/statuses/firehose.json I get an error:
HTTP / 1.1 403 Forbidden .... User not in role
I understood that firehose not available to developers by default. How can I get access to it?
- After about fifteen minutes, the connection is interrupted, how can I create a long-term connection? the OAuth only valid for a few minutes, so I have to create new one every time again. Is there any way to keep the connection alive or reconnect using curl with the same Authorization?
Thanks! and sorry for my English, It’s not my native language…