dou91855 2011-10-20 13:34
浏览 38

有没有办法计算特定的Twitter ID提到的数量没有身份验证

Is there any way in php to find out the total number of mentions made by a particular twitter id.Suppose my Twitter Id is 123456789 or my screen name is "ABCD" . I want to calculate total number of mentions made by me(i.e. @andrew) so far.I want to do this without user authentication.

Thanks

  • 写回答

1条回答 默认 最新

  • doupi6737 2011-10-21 11:53
    关注

    Very well, both cases. In the case of finding out how often a certain user mentions others you could use the user_timeline resource without needing authentication. You could fetch 200 tweets by a user a time and then make use of the since_id parameter to keep fetching older tweets. For every tweet you can then check if it contains a mentions.

    As for the other case, I'm not sure. You could use the search API with a search string of "to:username" for @replies or a search string of "username" which would yield tweets by that user, as well as @replies and @mentions. Twitter search only gives results for the last couple of days though so I doubt that this would help you.

    Good luck!

    评论

报告相同问题?

悬赏问题

  • ¥20 易康econgnition精度验证
  • ¥15 线程问题判断多次进入
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致