Code Monkey home page Code Monkey logo

tweetbotutils's Introduction

TweetBotUtils

This repository hosts a few scripts related to the creation and formatting of datasets for bot detection in Twitter datasets.

user_dataset_from_davint.py

This script creates a user dataset from a collection of tweets in JSON format. davint refers to the standard used by TweetUtils, however, it should work as long as your JSON file hosts an id property that refers to the ID of every tweet. Selenium, Chromedriver, Tweepy, and Twitter API keys are required to run this script.

user_dataset_from_uid.py

Same usecase as above, but it assumes your tweet dataset contains the user_id for every tweet. Runs considerably faster and is much more lightweight considering it's not running on a headless browser to obtain the updated screen_name.

yangetal_from_userset.py

Creates a user dataset with the feature set used in Yang, K.-C., Varol, O., Hui, P.-M., & Menczer, F. (2020). Scalable and Generalizable Social Bot Detection through Data Selection. Proceedings of the AAAI Conference on Artificial Intelligence, 34(01), 1096-1103. This script works from using an existing dataset of users created by the previous scripts. Please use the following citation if you end using this in your work:

@article{Yang_Varol_Hui_Menczer_2020, 
title={Scalable and Generalizable Social Bot Detection through Data Selection}, 
volume={34}, 
url={https://ojs.aaai.org/index.php/AAAI/article/view/5460}, 
doi={10.1609/aaai.v34i01.5460}, 
number={01}, 
journal={Proceedings of the AAAI Conference on Artificial Intelligence},
author={Yang, Kai-Cheng and Varol, Onur and Hui, Pik-Mai and Menczer, Filippo},
year={2020}, month={Apr.},
pages={1096-1103}}

abreuetal_from_userset.py

Creates a user dataset with the feature set used in J. V. Fonseca Abreu, C. Ghedini Ralha and J. J. Costa Gondim, "Twitter Bot Detection with Reduced Feature Set," 2020 IEEE International Conference on Intelligence and Security Informatics (ISI), 2020, pp. 1-6. This script works from using an existing dataset of users created by the previous scripts. Please use the following citation if you end using this in your work:

@inproceedings{9280525,
 author={Fonseca Abreu, Jefferson Viana and Ghedini Ralha, Célia and Costa Gondim, João José},
 booktitle={2020 IEEE International Conference on Intelligence and Security Informatics (ISI)}, 
 title={Twitter Bot Detection with Reduced Feature Set}, 
 year={2020},
 pages={1-6},
 doi={10.1109/ISI49825.2020.9280525}}

tweetbotutils's People

Contributors

spedr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.