Botometer Pro

(Ким) Observatory on Social Media | Оновлено 8日前 | Social

9.2 / 10



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


Health Check


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


Rapid account: Traciefrost

Hello, I have a ULTRA plan and tried to use BotometerLite non-Twitter mode. But I am getting error: HTTPError: 400 Client Error: Bad Request for url:

The code I used is from

import botometer

rapidapi_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
blt = botometer.BotometerLite(rapidapi_key=rapidapi_key)
tweet_list = [tweet1, tweet2, …]

blt_scores = blt.check_accounts_from_tweets(tweet_list)

Rapid account: Sushmasree 325
sushmasree325 Commented 4ヶ月前

How can I contact you personally

Rapid account: Traciefrost
traciefrost Commented 5ヶ月前

Thank you for checking. I tried many times using both Jupyter Notebook and Google collab but still showed the same error message. Is it possible to contact you and see how you do it? I can send you a link of my google collab. Could you please let me know your email address?

Rapid account: O So Me
OSoMe Commented 5ヶ月前

I just tested it myself. The API works as expected. Without access to your data / coding environment, I cannot determine the cause of the error. One possible reason is that the payload is in incorrect format.

Rapid account: Traciefrost
traciefrost Commented 5ヶ月前

I did subscribe to the ULTRA plan.

I created an app and then copied the API key from that app to “rapidapi_key = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx””

Please find my error message below. This is the error message I received after running “blt_scores = blt.check_accounts_from_tweets(tweet_test)”. I don’t know how to solve the problem.

HTTPError Traceback (most recent call last)
/var/folders/wc/l13x0hlj2v11tnndkqflyzmh0000gn/T/ipykernel_27948/ in <module>
1 # Prepare a list of tweets from the users that you want to perform bot detection on.
2 # The list should contain no more than 100 tweets.
----> 3 blt_scores = blt.check_accounts_from_tweets(tweet_test)

~/opt/anaconda3/lib/python3.9/site-packages/botometer/ in check_accounts_from_tweets(self, tweets)
284 url = self.bom_api_path(‘check_accounts_in_bulk’)
285 bom_resp = self._bom_post(url, json=tweets)
–> 286 bom_resp.raise_for_status()
287 classification = bom_resp.json()

~/opt/anaconda3/lib/python3.9/site-packages/requests/ in raise_for_status(self)
959 if http_error_msg:
–> 960 raise HTTPError(http_error_msg, response=self)
962 def close(self):

HTTPError: 400 Client Error: Bad Request for url:

Rapid account: O So Me
OSoMe Commented 5ヶ月前

Then it should work. Do you have more specific error messages? (The one you provided often appears when you do not have access to the ULTRA plan.)

Rapid account: Traciefrost
traciefrost Commented 5ヶ月前

Yes, I had some historical tweets collected from Twitter API before it became unavailable and I converted them into a list following the Github tutorial like this:

tweet_list = [tweet1, tweet2, …]

I tested on 4 tweets but kept getting the error message. I thought the non-Twitter mode does not require a connection to Twitter API. Can I use non-Twitter mode to check accounts for tweets already collected? Thanks.

Rapid account: O So Me
OSoMe Commented 5ヶ月前

Are the tweet objects in the tweet_list obtained from the Twitter API v1 (which is no longer available)?

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

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