The Twitter bot is a program used to produce automated posts, follow Twitter users, or serve as spam to entice clicks on the Twitter microblogging service. In this project, we will use Machine Learning techniques to predict whether an account on Twitter is a Bot or a real user. We have performed a significant amount of feature engineering, along with feature extraction - selected features out of 20 helped us to identify whether an account is a bot or non-bot. Please see below a sample solution kit to jumpstart your solution on creating a Bias Detector application. To use this kit to build your own solution, scroll down to refer sections Kit Deployment Instructions and Instruction to Run. ⬇️ Download 1-Click Installer
VSCode and Jupyter Notebook are used for development and debugging. Jupyter Notebook is a web based interactive environment often used for experiments, whereas VSCode is used to get a typical experience of IDE for developers. Jupyter Notebook is used for our development.
Jupyter Notebook 9740 Version:v7.0.0a11
Jupyter Notebook 9740 Version:v7.0.0a11 License: Others (Non-SPDX)
Exploratory Data Analysis
For extensive analysis and exploration of data, and to deal with arrays, these libraries are used. They are also used for performing scientific computation and data manipulation.
Python 36783 Version:1.5.2
Python 36783 Version:1.5.2 License: Permissive (BSD-3-Clause)
Python 22621 Version:1.24.1
Python 22621 Version:1.24.1 License: Permissive (BSD-3-Clause)
Data Visualization
The patterns and relationships are identified by representing data visually and below libraries are used for generating visual plots of the data.
Python 16825 Version:3.6.2
Python 16825 Version:3.6.2 License: No License
Python 10314 Version:0.12.2
Python 10314 Version:0.12.2 License: Permissive (BSD-3-Clause)
Utilities
Tweepy library helps to integrate our application with Twitter.
Jupyter Notebook 84 Version:Current
Jupyter Notebook 84 Version:Current License: Permissive (MIT)
Instruction to Run
Follow below instructions to run the solution. 1. Locate and open the Bot-Detection.ipynb notebook from the Jupyter Notebook browser window. 2. Bearer tokens are needed to use the Twitter API. 3. To obtain it, access https://developer.twitter.com/en/apps or click here register your app, and get your API keys (and tokens) 4. Under Generate Bearer Token section, replace your Bearer token in the curl URL at location of Authorization: Bearer < bearer token > For example, Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAbfb3IuBi2%bS323nE%nL 5. Execute cells in the notebook by selecting Cell --> Run All from Menu bar. For your Challenge, 1. You can get recent tweets by modifying the hashtag in curl URL with query=%23< tag >.For e.g query=%23covid 2. Execute cells in the notebook by selecting Cell --> Run All from Menu bar. 3. Output will be stored in a file Output_data.csv in the location Twitter-Bot-detection directory. Output text is in csv format.
Troubleshooting
1. While running batch file, if you encounter Windows protection alert , select More info --> Run anyway 2. During kit installer, if you encounter Windows security alert, click Allow
Support
If you need help to use this kit, you can email us at kandi.support@openweaver.com or direct message us on Twitter Message @OpenWeaverInc.
Open Weaver – Develop Applications Faster with Open Source