Makes graphs from comments on Reddit threads
docker-compose up
to start everything up
--build
option to make it not use a cached image when you wanna update the image-d
option to leave it always running in a detached state--threads
grabs the threads from the given thread IDs--cdf
grabs the most recently completed CDF--all
grabs all previous FTFs and CDFs (including the one that's currently in progress)docker exec -it cdf.moe_acquire_1 /bin/bash
2) poetry run python3 acquire.py --OPTION
3) Wait potentially quite a while or a few seconds-minutes for it to run depending on which option you chose--cdf
option on a weekly basisdocker exec -it cdf.moe_db_1 psql -U YOUR_POSTGRES_USER THE_DB_DATABASE
docker network create cdf.moe_nginx
docker exec -it cdf.moe_website_1 npm run build
and point nginx at the resultant /distselect rank() over (order by count desc), author, count from (select author, count(author) from comments inner join threads on link_id = long_id where short_id='short_name_for_thread' group by author order by count desc) x;
with t1 as (select parent_id, count(*) as c from comments inner join threads on link_id = long_id where short_id = 'short_name_for_thread' and link_id != parent_id group by parent_id),
t2 as (select author, name from comments inner join threads on link_id = long_id where short_id = 'short_name_for_thread')
select t2.author, sum(t1.c) as s from t1, t2 where t1.parent_id = t2.name group by author order by s desc;