时间范围的 Twitter API 推文 [英] Twitter API tweets for time range

查看:36
本文介绍了时间范围的 Twitter API 推文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用 Twitter API 来获取用户在特定时间范围内的推文?

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

它似乎不在 statuses/user_timeline 中.

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

推荐答案

您可以使用 sinceuntil 运算符.

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

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

20 种方式搜索旧推文

这篇关于时间范围的 Twitter API 推文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆