Is Reddit the Asshole?
I, like many, am tired of the obvious bait posts on my reddit feed consisting of ridiculous situations in which, yes, OP is in fact an asshole.
To that end, I built this application to track the statistics of petitioners to /r/AITA.
The main webserver is running Flask with a SQLite database. Celery runs a scheduled task to scrape results and compiles the data into the database for quick retrieval.
Let me at it!
Next, clone the repo:
$ git clone firstname.lastname@example.org:tristanmkernan/aita.git
Grab your reddit client id and secret here:
- Click 'Create another app'
- Enter application name, select 'script' option, enter 'localhost' for redirect uri
- Click 'Create app'
- Grab client secret and client id (hint: this is the code beneath 'personal use script')
- Enter the client secret and client id
- Update the user agent string to something meaningful and with your username
- Update the application secret if you are hosting this publicly
Build the docker images and run the docker images:
$ # in aita/ directory $ docker-compose build $ docker-compose up
Note: in case you want to host this application yourself, be sure to change the secret key in
Visit localhost:8090 to access your local installation!
Copyright Tristan Kernan. Licensed GPLv3+.