简体   繁体   English

YQL Twitter时间轴超出了速率限制。 解决方法

[英]YQL Twitter timeline Rate limit exceeded. workaround

I am looking for a solution/advice in my situation: 我正在寻找适合自己情况的解决方案/建议:

I want to use YQL for getting twitter timeline feeds, 我想使用YQL获取Twitter时间轴供稿,

Feed example: 供稿示例:

https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=NynasBo&count=2 https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=NynasBo&count=2

Here is my YQL query string: 这是我的YQL查询字符串:

select * from json where url="https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=NynasBo&count=2" 

but because twitter has limitation on number of calls of course i get pretty much all the time " Rate limit exceeded ", because a lots of users are using yahoo domain name. 但是因为推特当然对通话次数有限制,所以我一直都在“ 超出速率限制 ”,因为很多用户正在使用Yahoo域名。

I want and advice how can a make have a solution or workaround in this situation, like: 我想要并提出建议,在这种情况下,make将如何提供解决方案或解决方法,例如:

change domain name, use different tables, different way to get feeds, something else, because .. etc 更改域名,使用不同的表,获取提要的方法不同,还有其他原因,因为..等

Unfortunately I do not have a big experience with YQL :(. 不幸的是我没有与YQL :(一大经验。

PS: PS:

I use just client side code (javascript/jQuery) 我只使用客户端代码(javascript / jQuery)

Why I need in this cae to use YQL : 为什么在这种情况下我需要使用YQL

I want to mush up about 10-15 users timeline in one, and for that I have to make 10-15 AJAX call, where YQl has yql.query.multi tabe which is a perfect solution for me, I can combine all these query in one and use 1 AJAX call. 我想将大约10-15个用户的时间轴合在一起,为此,我必须进行10-15个AJAX调用,其中YQl具有yql.query.multi Tabe,这对我来说是一个完美的解决方案,我可以将所有这些查询组合一并使用1个AJAX调用。

I appreciate any help. 感谢您的帮助。

Sorry for my English 对不起我的英语不好

Thanks 谢谢

Alex, 亚历克斯,

Take a look at "How Do I Get Started" section on the page: http://developer.yahoo.com/yql/ and get a access key. 查看页面上的“我如何入门”部分: http : //developer.yahoo.com/yql/并获得访问密钥。 You might need an oauth library. 您可能需要一个oauth库。

If you don't have an access key the "Per IP rate limit" applies. 如果您没有访问密钥,则适用“每个IP速率限制”。 From the webpage above, the rate limits are as follows: 在上面的网页中,速率限制如下:

Usage Limits Per application limit (identified by your Access Key): 100,000 calls per day 使用限制每个应用程序限制(由访问密钥标识):每天100,000个呼叫
Per IP limits: /v1/public/ : 2,000 calls per hour; 每个IP限制:/ v1 / public / :每小时2,000个呼叫; /v1/yql/ : 20,000 calls per hour / v1 / yql / :每小时20,000个通话

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM