dourong9253 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?)

http://woork.blogspot.com/2009/06/simple-php-twitter-search-ready-to-use.html

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

Any help/ Ideas is appreciated!

  • 写回答

2条回答 默认 最新

  • 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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?