Coder Social home page Coder Social logo

precog-task1's Introduction

PreCog-Task

1. Data extraction using the data.py script:

Using the Twitter API with Tweepy wrapper, data has been extracted for particular hashtags. I have collected 10001 tweets for Mumbai Rains and 12400 for Delhi/NCR Pollution-exported as json file in Data directory from mongodb.

To use the data script, in terminal run the following command: $ python data.py

  • You have put Twitter API keys for extraction.

2. Analysis (according to the hosted webapp):

1. Network Graph is made using the networkx tool in pyhton and later visualized using matplotlib. Replies, retweets and mentions are considered for graphs.
2. Geoplotting for the location of tweets based on geo-coordinates, user-timezone and user-location has been visualized using CartDB with frequency values of tweets occuring from a particular location.
3. The percent of tweets the non-Delhi and non-Mumbai people tweeting about the Delhi and Mumbai incidents visualized using Pie Charts by Google Charts.
4. The type of media used in tweets like text, image, video and GIFs and their ratio in overall tweets visualized using Donut Chart by Google Charts.
5. The ratio of original tweets vs the retweeted tweets visualized using Pie Charts by Google Charts.
6. Top 10 hashtags used for both Delhi and Mumbai data visualized using Bar Charts by Google Charts.
7. CDF for the favourite count on the original tweets visualized using matplotlib. Point on the graph defines the probability of tweets on the y-axis will have at-most favourite count defined on x-axis.

3. Webapp for the data analysis:

Data analysis script: "my2.py" is stored in the Codes directory which is further analysed using Google charts. Webapp is hosted on: https://precog-task1-shrebox.herokuapp.com/

precog-task1's People

Contributors

shrebox avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar  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.