【问题标题】:Get Twitter trends when specifying a WOEID指定 WOEID 时获取 Twitter 趋势
【发布时间】:2011-06-12 17:16:41
【问题描述】:

大家好,我想获取特定国家/地区的热门话题列表。

您可以查看documentation here

提要的格式是

api.twitter.com/1/trends/woeid.format

在伦敦搜索趋势时(WEOIP=44418),它非常有效。

api.twitter.com/1/trends/44418.json

但由于某种原因,它不适用于南非(WEOIP=23424942)

api.twitter.com/1/trends/23424942.json

【问题讨论】:

    标签: twitter


    【解决方案1】:

    提供某些国家/地区的趋势数据,但不适用于南非。

    此博文底部有一个可用位置列表(可能已过时,于 2010 年 2 月 4 日发布): https://blog.twitter.com/engineering/en_us/a/2010/woeids-in-twitters-trends.html

    【讨论】:

      【解决方案2】:

      Twitter API 提供了一种方法来获取热门话题的可用位置。您应该首先获取这些可用位置,然后通过指定其 WOEID 来请求加载其中一个位置的趋势主题。见Twitter API reference for available locations

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-08
      • 1970-01-01
      • 2018-04-01
      • 1970-01-01
      • 2011-03-11
      • 2011-05-22
      • 2015-06-27
      相关资源
      最近更新 更多