2013-12-08 33 views
0

我希望能够以任何语言(最好是Python :))调用一个函数,其中我传入的参数只是一个日期或日期范围,并且我返回了趋势主题列表在Twitter上(或任何其他社交媒体)在这些日期。可能检索在特定日期趋势的Twitter主题?

可以做到这一点吗?我如何做到这一点?

非常感谢。

回答

0

这似乎不可能通过官方的1.1 twitter API,它只提供当前热门话题,但http://twend.it档案在twitter上热门话题。您可能可以抓取它们或发送电子邮件询问他们是否拥有API。

0

每个帖子都有一个唯一的标识符,所以你必须通过各自的calls.So来接他们各自考虑下面的情况下,状态标识为“40946281247042355” &“409462812470423552”加上时间戳。

<a href="https://twitter.com/TechCrunch/status/409336675458760705" class="tweet-timestamp js-permalink js-nav js-tooltip" title="11:00 AM - 7 Dec 13"><span class="_timestamp js-short-timestamp " data-time="1386428443" data-long-form="true">7 Dec</span></a> 


<a href="https://twitter.com/TechCrunch/status/409462812470423552" class="tweet-timestamp js-permalink js-nav js-tooltip" title="7:21 PM - 7 Dec 13"><span class="_timestamp js-short-timestamp js-relative-timestamp" data-time="1386458516" data-long-form="true">23h</span></a>