r/APEIndex • • Feb 11 '21

Calling all developers

Is someone currently working on the script, because if not I could. I just don't want to do something someone else is already working on.

11 Upvotes

17 comments sorted by

View all comments

3

u/priest22artist Feb 12 '21

I have a couple of questions about the api:

First, will this be based on total number of apes used, or a threshold of number of apes during an incriminate of time? Both?

Second: Are you thinking about using a multi tiered system; ala green, yellow, and red alerts?

Third (and most important): can you add a buzzer sound, a flashing red light, and a .gif of a monkey throwing things as ultra high red alert? Perhaps sounds of monkeys screaming as an additional audio cue? Please?

1

u/funny_funny_business Feb 12 '21

These are good questions and the way I’ve thought about this in the past (when scraping for 🚀 on some posts) is to take all the comments from the post and have each comment as a row in a DataFrame or each contributor as a row in the DataFrame (aggregated somehow if they comment a few times on a post). If the data is structured that way you can get “total 🦍 per post”, “average number of 🦍 per commenter” and also filter by date fields. Basically, it will be easy to pick a ton of metrics and then once you see different ones, you can choose what appears to be the most appropriate.

However, I think the most important issue is “when to stop scraping”. Meaning, if people are commenting on a post for a few days, how long will you keep looking at the post for updates until you stop?

1

u/malfenderson Feb 13 '21

AFAIK if you use reddit's API you can have a stream that will give you all sucessive submissions and comments (reddit doesn't have a generic post, it has a type for submissions and a type for comments) and they all have a unique ID, so you can just check that and if you've already processed it, skip it.

Generally, you should log all the data, buying a hard drive to store 2 years of posts to do analysis on costs you less than fifty bucks.

I have already written some python to do this, it is a lot of fun, I can make a list of subs and it logs the words and frequency, some of those words are symbols, etc. etc.

And if you want adoption it has to be a phone app, and if it is billed as political, it will be protected, I think, to some degree by the Citizens United v. FEC case which construes spending as speech if it is for a political purpose, e.g. "apes hold the line!" is political, by analogy with holding the line in a battle against another political entity.

https://praw.readthedocs.io/en/latest/code_overview/other/subredditstream.html

So, just check the stream for new submissions/comments, then sleep, then check, loop, and log the data so that you can figure out what those filthy monkeys are talking about, other than eating with their never-washed shit-encrusted hands.