GithubHelp home page GithubHelp logo

jakubraban / covid-tweet-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 971 KB

A web application made using Flask presenting statistics about COVID-related tweets from Poland

Dockerfile 0.45% Python 71.28% HTML 28.22% Shell 0.06%

covid-tweet-analysis's Introduction

COVID tweet analysis

Covid tweet analysis is an application for computing statistics about Polish tweets concerning Covid pandemic in Poland.

How it works

When the application builds, the tweets (stored in MongoDB BSON format in mongo/tweets directory) are loaded into the database. From the main page, user can choose which statictic they want to see. Also date range and user group filters can be specified. After submitting the form, appropriate queries are performed and the result is displayed in graphical form. Application also makes it possible to browse specific users' tweets and display variuos data about their accounts.

How were the tweets collected

Tweets were collected using official Twitter API from free 7-day endpoint. Fetching scripts are stored in fetch/ directory. Every week from late March until May 2020, a script was run to get the tweets from the last week. The list of accounts being searched for can be found in fetch/weekly_fetch.py file. A tweet was considered relevant if it contained "koronawirus" (coronavirus) word (we found it to be the best keyword to check against). Also, tweets were split depending on author's social group (politicians by political affiliation, medics, artists, journalists and influencers). Such an approach let us collect over 150K tweets in 10 collections.

How to build

  • Place extracted tweet collections in BSON format in mongo/tweets/ directory (sample dataset can be found here)
  • In main project directory, run $ docker-compose up, it will download required Docker images and run the application

Usage examples

Input form

Analysis result

User tweets

Tech stack

covid-tweet-analysis's People

Contributors

jakubraban avatar miro662 avatar jcobb2020 avatar jakub-pilch avatar hubert-guzowski 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.