GithubHelp home page GithubHelp logo

epsalt / reddit-c19-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 863 KB

Visualizing COVID-19 discussion on local subreddits with word2vec

Home Page: https://nbviewer.jupyter.org/github/epsalt/reddit-c19-analysis/blob/master/c19-reddit-alberta.ipynb

Python 0.43% Jupyter Notebook 99.57%

reddit-c19-analysis's Introduction

COVID-19 Discussion in Albertan Subreddits

This project uses data from the /r/calgary, /r/edmonton, and /r/alberta subreddits to visualize discussion of topics related to COVID-19 over time. View a notebook explaining the analysis and exploring the results on nbviewer.

COVID-19 discussion across albertan subreddits

Label Date Event
A 2020-01-15 Canada's first case
B 2020-03-05 Alberta's first case
C 2020-03-17 Canada Declares Public Health Emergency

Running the notebook interactively

To run the notebook locally, follow these steps:

# Clone the repo
$ git clone https://github.com/epsalt/reddit-c19-analysis
$ cd reddit-c19-analysis

# Install dependencies
$ pip install -r requirements.txt

# Download comment data
$ curl https://alberta-reddit-data.s3-us-west-2.amazonaws.com/coms.jsonl.gz -o coms.jsonl.gz
$ gunzip -d coms.jsonl.gz -c > data/coms.jsonl

# Or use `pushshift.py` to request data from the pushshift API 
# - Requests are rate limited so this can take a while
# - Date ranges or subreddits can be changed in the source
$ python pushshift.py

# Run the notebook
$ jupyter notebook c19-reddit-alberta.ipynb

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.