Home > other >  Botometer python library operation especially slow
Botometer python library operation especially slow

Time:10-19

Everybody is good, recently in the use of indiana university development botometer, officials say there are 17000 requests every day, but my own testing only more than 2000 requests a day, and even lower, under the code for the three test accounts, should according to the claim is 5 seconds give a result, but I have found the test basically need about 20 seconds, is there any one great god used similar, can guide,

Come on what a great god can see what reason be?
The import botometer
The import CSV

Mashape_key="L4njAUSayYmshtdW8kpvBrBzOlZ7p1hDs0XjsnXsRi1yZpuuL7"
Twitter_app_auth={
'consumer_key' : '* * * * * * * * * * * * * * * * * * * * * *',
'consumer_secret' : '* * * * * * * * * * * * * * * * * * * * * * * * *',
'access_token' : '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *',
'access_token_secret' : '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *',
}
Bom=botometer. Botometer (wait_on_ratelimit=True,
Mashape_key=mashape_key,
* * twitter_app_auth)

# Check. A single account by screen name
Result=bom. Check_account (' @ clayadavis')

# Check. A single account by id
Result=bom. Check_account (1548959833)

# Check a sequence of accounts
Accounts=[' @ clayadavis', '@ onurvarol', '@ jabawack]
For screen_name, result in bom. Check_accounts_in (accounts) :
Print the result

CodePudding user response:

If the server is too far away, can rent a Google cloud server, located near Atlanta?
  • Related