Giter Site home page Giter Site logo

nettweet's Introduction

NetTweet

Generate a network of connections from a group of Twitter accounts. You can specify a group of Twitter accounts and NetTweet adds these accounts to the dataset as well as the accounts followed by them. Then, it selects the account that is followed by the most nodes in the network and adds its following accounts to the dataset. This process will be repeated until it adds all nodes in the network to the dataset (This, however, rarely happens as a network generated by a few nodes can quickly become massive. So you should stop the run whenever you feel satisfied with the size of the network).

Besides the accounts, NetTweet also adds recent tweets of each node to the dataset so you can search through all tweets for specific keywords

How to use

  • Set up a Twitter Developer account (https://developer.twitter.com/)
  • Request an Elevated API access
  • Set up a MongoDB Database
  • Make a config.ini file (use example_config.ini)
  • Select the origin nodes of the network by adding your desired accounts to the config file (use csv format)
  • run add_origins.py
  • run add_nodes.py. All accounts and their tweets will be added to the dataset
  • You can use search_tweets.py to search for tweets with specific keywords (set keywords in the config file)
  • Use add_tweets.py to update the tweets dataset

nettweet's People

Contributors

mahbodnr 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.