Twitter4J: get todays tweets from a public profile?
Question
I'm aware you can get all tweets and the last X number of tweets but how would I return every tweet for the past 24 hours?
Solution
Using Twitter Search, you can specify a date range using since:
and a from:
parameter to select who it is coming from. For example:
http://search.twitter.com/search?from=biz&since=2011-05-04&until=2011-05-05&rpp=20
Using Twitter4J, the query you want to use is the string from:biz since:2011-05-04
using one of the search libraries.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow