按国家/地区获取顶级推特趋势 [英] Getting top twitter trends by country

查看:28
本文介绍了按国家/地区获取顶级推特趋势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用 API 获取趋势,但我希望按国家/地区和前 10 名获取趋势.

I know how to get trends using API, but i want it by country and top 10.

我该怎么办?这可能吗?

How can I ? Is that possible?

尝试过这个但没有用

http://api.twitter.com/1/trends/current.json?count=50

推荐答案

是的,你可以.

首先,弄清楚您想要哪些国家/地区获取数据.

First, figure out which countries you want to get data for.

打电话

https://dev.twitter.com/docs/api/1/get/trends/available

将为您提供 Twitter 有趋势的所有国家/地区的列表.

Will give you a list of all the countries Twitter has trends for.

假设您想要了解英国的趋势.上面告诉我们WOEID是23424975.

Suppose you want the trends for the UK. The above tells us that the WOEID is 23424975.

要了解英国的十大趋势,打电话

https://api.twitter.com/1/trends/23424975.json

这篇关于按国家/地区获取顶级推特趋势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆