Git Product home page Git Product logo

pretweet's Introduction

Predicting Retweetability of a tweet:

This project is based on the paper Factors Impacting Retweet in Twitter Network. We gathered content and contexual features from a dataset of tweets and it is used to identify factors associated with retweet rate.
Features used include: followers_count, friends_count, user_mentions, urls_count, hashtags_count, favourites_count

Dataset:

https://archive.org/details/archiveteam-json-twitterstream-2012 (27 million tweets)

Principle Component Analysis (PCA) and Generalised Linear Modelling were used to analyze the factors affecting retweet rate.

Directories:

pRetweet
|__ data
...|__ 01
...|__ 02
...|__ :
...|__ 31
...|__ dw.sh : download datasets
...|__ unbzipall.sh : for each directory in 01..31, unbzip folder locally (using unbzip.sh)
...|__ formatall.sh : go to each directory, format json to correct format using proper.rb, puts formatted files in 'out' folder
...|__ populateall.sh : get all data from out folder and insert into db
...|__ unbzip.sh
...|__ proper.rb
...|__ json_to_db.py
|__ pca.py :
|__ linear.py :
|__ graph*.py .. :

Instructions:

  1. Download Datasets using dw.sh. There are 31 .zip files. Unzip all and put unzipped folders (01..31) in data folder.

  2. Run unbzipall.sh

  3. Run formatall.sh

  4. Create MySQL database 'pretweet'. Put proper tablename, username and password in json_to_db.py file Run populateall.sh

Now the database contains all the records.

  1. Run pca.py, linear.py etc for analysis of data

pretweet's People

Contributors

rathodsachin20 avatar sahaj avatar

Stargazers

Sharath Rao avatar

Watchers

 avatar  avatar

Forkers

jianleisun

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.