Code Monkey home page Code Monkey logo

eda_reddit_politics's Introduction

Twitter profile link buttonLinkedin profile link buttonTableau profile link buttonGithub profile link button

Data Analysis of Reddit's /r/politics

Using Praw to Access API Data from Reddit



Project Links


  1. Blog Post: "Data Analysis of Reddit's /r/Politics"
  2. Google Colab Notebook


Project Goals


The purpose of this project was to practice using APIs to scrape data from a website. The website Reddit was chosen because it is one of the visited websites on the internet. Data from the subreddit /r/politics was scrapped using the python library Praw. This subreddit was chosen due to it's active userbase. Analysis included determining top posts for this subreddit and understanding what factors contributed to their ranking beyond most upvotes and comments.

Additional goals for the project included:

Finding the top posts by score/upvotes
Determining if a high score correlates with a high number of comments
Discover the popular words used in all post titles
Semantics analysis of posts and determine if they are negative, positive, or neutral?


Summary of Results


Correlation of Post Score and Number of Comments

A heatmap that was ran through Seaborn showed there was a very positive correlation between the number of comments and the score of a posts (0.89).



Word Frequency of Post Titles

Word frequency showed that Biden and Trump were the most popular key words, followed by GOP.



Sentiment Analysis

The majority of posts in /r/politics were found be neutral, followed by negative.

eda_reddit_politics's People

Contributors

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