Twitter的API将采取foreover获得追随者列表 [英] Twitter API will take foreover to get followers list

查看:357
本文介绍了Twitter的API将采取foreover获得追随者列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

मैंएकविशेषप्रयोक्ताकाअनुसरणकरनेवालेलोगोंकेआंकडेकोप्राप्तकरउसपरकुछतर्कलगाकरकुछउत्तमप्रयोक्ताओंकोप्राप्तकरनेकाइच्छुकहूँ。 मुझेट्विट्टरकेअनुप्रयोगतंत्रांशअंतर्फलककोप्रत्येक15मिनटमेंकेवल15बारआवाह्नकरपाने​​कापताचला。 तोमैंने https://api.twitter.com/1.1/followers/list.json इकाईकाप्रयोगकियाऔरकेवल20परिणामप्राप्तकरपाने​​मेंसफलरहावप्रत्येक15मिनटमेंकेवल15हीआवाह्महोसकतेहैं。 तोइसकाअर्थहुआ:

मैं एक विशेष प्रयोक्ता का अनुसरण करने वाले लोगों के आंकडे को प्राप्त कर उस पर कुछ तर्क लगा कर कुछ उत्तम प्रयोक्ताओं को प्राप्त करने का इच्छुक हूँ । मुझे ट्विट्टर के अनुप्रयोग तंत्रांश अंतर्फलक को प्रत्येक १५ मिनट में केवल १५ बार आवाह्न कर पाने का पता चला । तो मैंने https://api.twitter.com/1.1/followers/list.json इकाई का प्रयोग किया और केवल २० परिणाम प्राप्त कर पाने में सफल रहा व प्रत्येक १५ मिनट में केवल १५ ही आवाह्म हो सकते हैं । तो इसका अर्थ हुआ :


  • 15मिनटमें300अनुयायियोंकाआँकडा

  • 1घंटेमें1200अनुयायियोंकाआँकडा

तोमानलीजियेमुझेभारतकेप्रधानमंत्रीश्रीनरेन्द्रमोदीजीकेअनुयायियोंकाआँकडापानाहैतो:

तो मान लीजिये मुझे भारत के प्रधानमंत्री श्री नरेन्द्र मोदी जी के अनुयायियों का आँकडा पाना है तो :


  • नरेन्द्रमोदीजीकेअनुयायी:1.45करोड़

अनुयायियोंकाआँकडापानेमेंलगनेवालासमय:12083घंटे - > 503दिवस - > 1.37वर्ष

क्यामैंकुछगलतकररहाहूँयाफिरट्विट्टरसेआँकडापानेमेंहीकठिनाईहै?

क्या मैं कुछ गलत कर रहा हूँ या फिर ट्विट्टर से आँकडा पाने में ही कठिनाई है ?

我想通过一些逻辑得到追随者的数据为特定用户和运行所获得的数据过滤掉一些值得用户。我才知道在15分钟第15条的电话。所以我使用的端点 https://api.twitter.com/1.1/followers/ list.json ,我可以得到一个请求刚刚20结果,有15只是每十五分钟的请求。因此,这意味着:

I thought of getting followers data for a particular user and run the obtained data through some logic to filter out some worthy users. And I came to know of 15 calls in 15 mins rule. So I use the endpoint https://api.twitter.com/1.1/followers/list.json and I can get just 20 results in one request and there are just 15 requests per 15 minutes. So this means :


  • 15分钟 - > 300追随者数据

  • 1小时 - > 1200追随者数据

要获取例如跟随数据先生莫迪,总理的巴拉特(又名印度)


  • 莫迪的追随者:14500000

时间来获取与速率限制的追随者数据:12083小时 - >503天 - >1.37年

我是这样做不对或者是不是真的很难从Twitter获取数据?

Am I doing this wrong or is it really tough to get data from Twitter ?

推荐答案

坏新的是,它是困难的。不过,好消息是,有一对夫妇的事情,这将提高您的情况:计数的和的应用程序授权

The bad new is that it is difficult. However, the good news is that there are a couple things that will improve your situation: count and application authorization.

您计算是基于项目的默认数退回, 20 ,但可以使用的计数的参数,以增加为 200 。这提高了你的结果为 3000 12000 15分钟到1小时,分别为。

Your calculations are based on the default number of items returned, 20, but you can use the count parameter to increase that to 200. That improves your results to 3000 and 12000 in 15 minutes and 1 hour, respectively.

有关速率限制,可以参考下面的限速图:

For rate limits, you can reference the following Rate Limit Chart:

https://dev.twitter.com/rest/public/rate-limits

这表明用户授权请求的数量 15 。不过,你也有应用程序授权的选项,并且请求数在15分钟的时间窗口 30

This indicates that the number of requests for user authorization is 15. However, you also have the option of application authorization and that number of requests is 30 in the 15 minute time window.

这有效地加倍的速度,让您在15和1小时的时间 6000 24000 的结果,分别由两个增加的计数的并切换到的应用程序授权

This effectively doubles the rate, giving you 6000 and 24000 results in the 15 and 1 hour times, respectively, by both increasing count and switching to application authorization.

下面是与搜索的API,也可能给你的想法速率限制先前的帖子:

Here's an earlier post on rate limits with the search API that might also give you ideas:

<一个href=\"https://stackoverflow.com/questions/21305547/how-rate-limit-works-in-twitter-in-search-api/21316883#21316883\">How限速工作在Twitter的搜索API

这篇关于Twitter的API将采取foreover获得追随者列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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