View on GitHub

Trackarma

A python script that tracks reddit karma

Build CodeFactor

The script logs an account’s total karma and dynamically generates a chart with the data it’s collected. Below is an example using data collected from /u/GallowBoob – a Redditor who’s infamous for his high karma count. The chart is showing data that was collected every minute for over 3 months.

Image

Setup

1. Clone the repo

git clone https://github.com/paramt/trackarma.git

2. Install dependencies

3. Configure PRAW

4. Configure Trackarma

5. Set up a scheduled task

Run sudo python src/collect_data.py at a constant interval using Crontab on Linux or Task Scheduler on Windows. To generate the chart, run sudo python src/generate_chart.py. The live example is running both commands every minute, but you may choose to run them at any interval

Output

The script will output everything in data/

License

This project is licensed under the MIT license. You are free to use, modify, and distribute the source code as long as you include the original license file.