2009-12-14 06:21 阅读 33

Twitter搜索结果 - API / Atom Feed

So I've got somewhat of a cool task and I'm just thinking it over. I'm more a designer so I thought I'd tap into the bright minds on here.

I am creating a basic page that displays the results from a twitter search results page. Put simply, I am displaying an atom feed with HTML. I'd like to do it with PHP, unless someone has something better in .net or ruby.

The following things are needed:

  1. It must show a count of the number of results returned (max about 1500).
  2. It must show the 'tweets' or Atom feed results. The twitter API limits this to 100 per call, but allows pagination. (so we can show 100 per page).
  3. It must update at least every 15 mins, if not instantly.

My idea so far:

  1. use twitter-search.php and run it 15 times calling pages 1-15. Somehow cache these pages so it only uses an API call once every 15 mins (how would I do this?)

  1. Then once everything is loaded, use Jquery .size to count the number is 'tweet' divs

Any help/ Ideas is appreciated!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    duandui2803 duandui2803 2010-01-13 17:28

    Ended up using a few Twitter PHP scripts and melded them together to get 1000 results on 1 page. 10 x 100 each

    点赞 评论 复制链接分享
  • douli7841 douli7841 2010-02-25 07:30

    I am wondering how to get a twitter search RSS feed that shows, say, 500 results instead of just the first 15? That's not fun at all.

    点赞 评论 复制链接分享