Botometer Pro

FREEMIUM
(Ким) Observatory on Social Media | Оновлено 21일 전 | Social
Популярність

9.3 / 10

Затримки

1,143ms

Рівень обслуговування

100%

Health Check

N/A

Повернутися до всіх обговорень

Unable to check botscores using for loop

Hello,

I am facing trouble, executing my code which executed perfectly a month ago. It is as follows:
bom = botometer.Botometer(wait_on_ratelimit=True,
rapidapi_key=rapidapi_key,
**twitter_app_auth)
Tweets_id = df_May22[‘author_id’].tolist()
Tweets = df_May22[‘tweet’].tolist()
Botscore=[]
for id in Tweets_id:
score= bom.check_account(id)

#tweet_list= (score.split(’,’))
#print(tweet_list)
Botscore.append(score)
df_May22[‘Bot_score’]=Botscore
df_May22

I get an error as follows:
TweepError Traceback (most recent call last)
<ipython-input-39-4ff13fff07f9> in <module>
24 Botscore=[]
25 for id in Tweets_id:
—> 26 score= bom.check_account(id)
27
28

3 frames
/usr/local/lib/python3.8/dist-packages/tweepy/binder.py in execute(self)
232 raise RateLimitError(error_msg, resp)
233 else:
–> 234 raise TweepError(error_msg, resp, api_code=api_error_code)
235
236 # Parse the response payload

TweepError: Not authorized.

Please let me know how to fix this and add the botscores to my dataframe
Solution will be very much appreciated
Rapid account: Chaitalibonke 7 Qn Cr Ufns T
chaitalibonke-7-QnCrUfnsT Commented 일 년 전

Thank you for the suggestion. Could you please let me know how to use and get 17280 bot scores per day. Could i code it using python or do i need to check it manually?

Rapid account: O So Me
OSoMe Commented 일 년 전

It seems you are trying to check the bot score of an account that’s not available (removed, protected, or restricted). Unfortunately, there is not much we can do about it. You might consider skipping this type of accounts.

–Botometer Team

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення