You are viewing a single comment's thread.

view the rest of the comments →

0
10

[–] Satirical 0 points 10 points (+10|-0) ago  (edited ago)

NOW AVAILABLE AS A PYTHON SCRIPT

I also made it ignore users that have been deleted.

It seems that only certain users get the captcha for sending messages, it's not on for my accounts.

If anyone is interested I'll write up a multithreaded script to do the messaging too.

import requests
import json
from collections import defaultdict
subs = ["aww","mademesmile","todayilearned","funny","science","unexpected","photoshopbattles","wellthatsucks","oddlysatisfying","casualuk","showerthoughts","pics","oldpeoplefacebook","insanepeoplefacebook","insanepeoplefacebook","trashy","crappydesign","freefolk","iamverysmart","watchpeopledieinside","hmmm","eyebleach","maliciouscompliance","food","gameofthrones","dankmemes","anormaldayinrussia","puns","gonewild","justiceserved","gifs","fakehistoryporn","formula1","animalsbeingjerks","animalsbeingbros","natureismetal","latestagecaptalism","teenagers","scottishpeopletwitter","gay","fuckthealtright","whitepeopletwitter","ruope","esist","lgbt","suddenlygay","judaism","gameofthrones","twoxchromosomes","trollxchromosomes","gaming","movies","againsthatesubreddits","politics","the_mueller","blackpeopletwitter","wholsomebpt","thanosdidnothingwrong","politicalhumor","topmindsofreddit","inthesoulstone","marvelstudios","marvel","games","gamingcirclejerk","chapotraphouse","drama","democrats","atheism","trumpgret","marchagainsttrump"]
subs_authors = defaultdict(list)
api_url = 'https://api.pushshift.io/reddit/search/comment/?subreddit={}&limit=30000&user_removed=no&sort_type=created_utc&sort=desc'
for item in subs:
    url = api_url.format(item)
    resp = requests.get(url)
    if resp.status_code == 200:
        json_data = resp.json()['data']
        for d in json_data:
            if d['author'].lower() != "[deleted]":
                subs_authors[item].append(d['author'])

fills out subs_authors object which will look like this:

{
    "sub_name": ["list", "of", "usernames"],
    "sub_name2": ["more", "user", "names"]
}

0
5

[–] opchimera 0 points 5 points (+5|-0) ago 

holy shit is this the hacker '4chan'?

0
1

[–] Satirical 0 points 1 point (+1|-0) ago 

No, it's satire.

0
0

[–] MrBlueChip ago 

Oh fuck ya python script