开发者

Twitter Threaded Conversation

I've been wanting to create something like this: http://twitter.theinfo.org/

A script which 开发者_Go百科finds replies to a tweet and shows them in a threaded fashion like this:

http://twitter.theinfo.org/45967981225840640

Any help on where to start or if there's an implementation already out there for me to tinker with?


Going up the thread is easy because replies have in_reply_to_statu_id but finding replies to a status is near impossible. You have have to maintain a search looking for tweets to a specific user and check if they are a reply in which case save them.


What I would do if i had to do that, is run a cron that would store the in_reply_to_status_id field, and then query that.

You could theoretically expect that only his followers will reply to him, if you'd like a starting point


You can use the Twitter OAuth API in numerous languages however what type of data you can get is limited to the API calls they provide.

What you're probably looking for is something like their retweets call; http://dev.twitter.com/doc/get/statuses/retweets/:id

You may want to take a look at the Twitter API Wiki; http://apiwiki.twitter.com/w/page/22554648/FrontPage

as well as their Tutorials listing;
http://apiwiki.twitter.com/w/page/22554678/Tutorials

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜