Counting keywords between two timestamps


I’m trying to avoid downloading the tweets information, and just count those tweets that have a keyword and are between two timestamps.
Is there a way to just count tweets without downloading? (preferably in python) Including those tweets that go beyond the limit, i.e. those that fall in limit track.

If the only possibility is to download the tweets info. How would be a way to get a quite accurate count between two timestamps or since the stream starts?


Every Tweet object has a created_at date property. As you receive Tweets from the API just check that value at see if falls in your date range. There is no way to get a count directly from the public API.

Gnip (a Twitter company) offers an paid product that has an API to do what you are looking for. More information here. This is enterprise-grade, so it may be more than you are looking for.