Using Python to obtain data from Reddit

Introduction As of March 2022, Reddit ranks as the 9th-most-visited website in the world and 6th most-visited website in the US according to Wikipedia. What is interesting about Reddit is that it has subreddits for people with different interests. For example, there are subreddits on prorgramming, technology or even about funny things at funny. There are a few approaches one can take to obtain data from Reddit. Here is one way to do it....

November 7, 2022 · 1626 words · Jian

Sentiment analysis for the subreddit Hong Kong

Sentiment Analysis for the Sub-Reddit “HongKong” This post will perform sentiment analysis using AFINN. AFINN is a list of words rated for valence rated with an integer between minus five(negative) and plus five (positive). This implementation uses AFINN-en-165. 1 This approach however is very naive as it does not build any models to determine the context of the usage of the word itself. Please note that the posts here are generated based on the Reddit website by doing GET requests....

October 13, 2019 · 3 min · Jian

Reddit Word Cloud for the subreddit programming

The word cloud generated here is based on the /r/programming subreddit for reddit.com The reason this post is made; is so that it would easier to see the word that appeared the most for the day. Even though the use of a word cloud is not exactly a good representation of occurrence, it still looks nice. Please note that the posts here are generated based on the Reddit website by doing GET requests....

October 12, 2019 · Jian

Percentage Charts for the subreddit Am I the Asshole?

The charts here are visualisation of the Am I the Asshole? subreddit which can be found here The subreddit describes itself as… A catharsis for the frustrated moral philosopher in all of us, and a place to finally find out if you were wrong in an argument that’s been bothering you. Tell us about any non-violent conflict you have experienced; give us both sides of the story, and find out if you’re right, or you’re the asshole....

October 9, 2019 · 3 min · Jian