Spyke
trueneutral·fuck u/spezbyJackLSauce

Made this PRAW script to ensure my Reddit data is cleared before deactivating. I sure hope a bunch of people don't run it during the last few days of free API access...

cross-posted from: https://lemmy.world/post/647097

You'll need to update the praw.Reddit() parameters and set booleans to True based on what you want to have cleared.

This also overwrites your comments with nonsense content seeing as Reddit doesn't really delete your comments if nobody forces them

Sorry about the amateurish Python, this isn't my go-to language

import praw

#Update all values set to XXXXXX and set boolean values to True for whatever you'd like to clear

reddit = praw.Reddit(
    client_id="XXXXXX",
    client_secret="XXXXXX",
    user_agent="script running locally", #required for PRAW but not sure content matters
    username="XXXXXX",
    password="XXXXXX"
)

#booleans
delete_posts = False
delete_comments = False
delete_saved = False
clear_votes = False
unsubscribe = False

def get_posts():
    return reddit.user.me().submissions.new(limit=100)

def get_comments():
    return reddit.user.me().comments.new(limit=100)

def get_subscriptions():
    return reddit.user.subreddits()

def get_saved_items():
    return reddit.user.me().saved(limit=100)

def get_upvoted():
    return reddit.user.me().upvoted(limit=100)

def get_downvoted():
    return reddit.user.me().downvoted(limit=100)

while(clear_votes):
    count = 0
    upvotes = get_upvoted()
    downvotes = get_downvoted()
    for vote in upvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    for vote in downvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    if(count == 0):
        clear_votes = False

while(delete_saved):
    count = 0
    saved_items = get_saved_items()
    for item in saved_items:
        item.unsave()
        count += 1
        print('Unsaved item ID: ', item)
    if(count == 0):
        delete_saved = False


while(delete_posts):
    count = 0
    posts = get_posts()
    for post in posts:
        print("Deleting submission: ", post)
        post.delete()
        count += 1
    if(count == 0): 
        delete_posts = False 


#Replace comments with nonsense data first as Reddit only "marks comments as" deleted
while(delete_comments):
    count = 0
    comments = reddit.user.me().comments.new(limit=1000)
    print("Replacing comments with nonsense data")
    for comment in comments:
       comment.edit('So long and thanks for all the fish')
    print("Deleting comments")
    for comment in comments:
        comment.delete()
        count+=1
    if (count == 0):
        delete_comments = False

while(unsubscribe):
    count = 0
    subscriptions = get_subscriptions()
    for subreddit in subscriptions:
        subreddit.unsubscribe()
        count += 1
        print('Unsubscribed from: ', subreddit.display_name)
    if (count == 0):
        unsubscribe = False

print('--finished--')
View original on lemmy.world
trueneutral·fuck u/spezbyAer

AITA for firing the website volunteers and a web developer?

Lemmy, I need your help. I have loads of colleagues blowing up my dms call me the asshole but I don't think I have done anything wrong... So hear me out.

I [40m] have felt like I am being taken advantage of by a developer, let's call him Chris [30m]

It all started when I hosted a Q&A, during the Q&A a question came up about a telephone call we had in private. It came out of nowhere so I reacted quickly. I didn't think the call was relevant to the Q&A we were having but he brought transcripts! I was shocked

It felt like he was deliberately trying to paint me as a villain. I Thought that was it, but after the Q&A all of the moderators were trying to close their subreddits, some of them tried to change the themes of their subreddits and even more shocking they were turning sfw to nsfw so I told them all they had to take their volunteer work seriously or I would fire them!

They are all unhappy because of my stance but I am only doing it for the good of my employer, as my boss tells me we aren't making enough money on ads and most people don't like our website in its current state but I think it's rubbish it works just fine without the developers help!

Anyway, Lemmy please tell me. Am I the Asshole?

View original on lemmy.world
trueneutral·fuck u/spezbyAer

If you need a reason to remember why we're leaving reddit, here is a good one! - Modlog is transparent so we can see everything. On reddit - not so much.

cross-posted from: https://lemmy.world/post/126190 If you think a 48 hour blackout is enough to stop spez from continuing, business as usual! You are very wrong and very delusional!

People were rightly calling out the fact that the subreddit only had the 48 hour blackout. They seemed really offended by SomeOrdinaryGamers insult of reddit mods... oh well? I discord mod, I don't exist purely on discord I have a life outside that being called out for being a discord mod is just funny banter. Get a thick skin lol

but the reaction was truly magnificent and I want to share it Completely missing the point and deliberately missing the point. Of which "Doing a 48 hour blackout and saying that gives an end time/date to the blackout meaning it really doesn't fucking matter to big-corpo reddit."

Which is correct because u/spez proved that. Anyway Enjoy the meltdown: https://imgur.com/a/xobVK6T

I managed to catch the user that was posting before they banned them from the subreddit. Dude is very obviously terminally online... So embarassing.

Anyway, I'm not going to do what that subreddit admin did. That was an utter abuse of power. Also smile crappy_pirate. You're on lemmy! Welcome.

Update I got banned 🤣

https://imgur.com/a/xobVK6TOpen linkView original on lemmy.world
trueneutral·fuck u/spezbycroobat

Some Reddit 3PA's are going subscription-only and I just want to vent

WE HAD A GOOD THING YOU STUPID SON OF A BITCH!

We had 3PA's, we had all the free labor in the world, just from passionate people who wanted to share the things they love, we had bots to fight spam, and extremely talented developers who made your stupid website work on mobile. It all ran like clockwork, if you could have just shut your mouth we'd all be fine right now.

But no, you just had to blow it up. YOU, AND YOUR GREED AND YOUR EGO.

Fuck u/spez

Edit: grammar

View original on lemmy.world
trueneutral | Spyke