/reddit_aita_post_analysis

People post on reddit r/AmItheAsshole to ask the internet whether they're being assholes. However, self-perspective bias confounds the final result. This project seeks to determine readers' collective judgement by providing additional context

Primary LanguagePython

reddit_aita_post_analysis

Build Status codecov

A package to analyze posts from reddit.com/r/AmItheAsshole/

Quick start

%load_ext autoreload
%autoreload 2

import src.util as util
import src.visualization as vis
import matplotlib.pyplot as plt

post_id = "123456"

reddit = util.get_reddit_connection()
post = util.get_post(reddit, post_id)
summary = util.analyze_post_tlc(post)

num_hours_cutoff = 12
fig = vis.create_tlc_analysis_figure(summary, num_hours_cutoff)
plt.show()

num_comments = 20
fig = vis.create_tlc_ranking_figure(summary, num_comments)
plt.show()