Botometer

Posted on  by 



Node-botometer-rapid-api documentation, tutorials, reviews, alternatives, versions, dependencies, community, and more. Logical indicating whether to set the botometer key as an R environment variable for current future sessions (on the same machine). Parse Logical indicating whether to parse return information.

  1. Botometer Python
  2. Botometer Paper

We are excited to announce the new v.1.3 of BotSlayer, our OSoMe cloud tool that lets journalists, researchers, citizens, & civil society organizations track narratives and detect potentially coordinated inauthentic information networks on Twitter in real-time. Improvements and new features include better stability, a new alert system, a Mac installer, and many additions to the interface. This version is released in time for those who would like to use BotSlayer to monitor #Election2020 manipulation.

Continue reading UPDATE: BotSlayer tool to expose disinformation networks

Photo by Morning Brew on Unsplash

A couple years back, I have writtena short Python code that retrieves all the followers for a specific account and check for bots usingBotometer. However, the Botometer has gone through somemajor changes which renders the original code obsolete. It is time to create something new!

Many new tools have become available since, includingStreamlit. According to Streamlit’s developers:

Streamlit’s open-source app framework is the easiest way for data scientists and machine learning engineers to create beautiful, performant apps in only a few hours! All in pure Python. All for free.

Although it might be an overkill, I have decided to create a Streamlit app that serves as a wrapper over the new Botometer API. It essentially provides two simple functions: 1) Collect all the followers for a given account and store them in an SQLite database and 2) Loop through each account and post the data to the Botometer API and receive bot check data. SQLite database is natively supported by Python so no need to run a separate service.

How to use

Botometer

Botometer Python

Download and set up the Streamlit app

The app is built with Python 3.7.4 (although other Python versions such as 3.7.x and 3.6.x should also work). It is easier to start fresh with a new virtual environment (e.g. “conda create –name botcheck python=3.7” if you are using conda), then running:

Now, you should be able to see the app at:http://localhost:8501

Get the Twitter and Botometer Rapid API credentials

Please seethis page for setting up the credentials. There is a free plan for testing that allows us to check up to 500 accounts per day. If you need more quota, their other paid plans would be ideal.

Use the app to retrieve followers and check for bots

  1. Select the JSON file that contains the Twitter and Botometer credentials. credentials.json is a template of the credential file, which can be found with the app. Credential loaded will be cached for later use.
  2. Provide an existing database. If not provided, the app will look for database in the temp folder. If no cached database available, a new database will be created.
  3. Specify the account whose followers need to be checked, and set the timeframe you want to keep the bot check data.
  4. Run “Retrieve Twitter followers”, which uses Tweepy API to retrieve all the followers of a specific account. If a database is provided or cached in the temp folder, the app will only add new followers that are not already in the database. If no database is available, the app will create a new database from scratch.
  5. Run “Check bot”, which call the Botometer Rapid API to check for bots in the database. It will not re-check the followers unless the bot data is expired. A download link will be available at the bottom of the sidebar when the process is completed. Alternatively, you can click the “Download bot check results” button to get the download link.

Results

Please checkthis section for the details of the output from bot check. You may also find thisblog post andthis paper from the developer of Botometer useful.

Botometer Paper

Related





Coments are closed