Twitter API tweets for time range

2019-01-25 10:26发布

Is there a way to use the Twitter API to get a user's tweets for a specific time range?

It doesn't seem to be in statuses/user_timeline.

标签: api twitter
1条回答
虎瘦雄心在
2楼-- · 2019-01-25 10:28

You can use the since and until operator.

https://api.twitter.com/1.1/statuses/user_timeline.json?include_entities=true&inc‌​lude_rts=true&screen_name=your_screen_name&since:2011-05-16&until:2011-08-16

But it will do you little good because tweets are searchable in a small time window. To get around this check out several resources,

Snapbird - https://github.com/remy/snapbird

and

20 ways of searching old tweets

查看更多
登录 后发表回答