1
1
submitted 1 year ago by [email protected] to c/[email protected]

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--')
2
2
submitted 1 year ago by [email protected] to c/[email protected]

It's Lemmy from here on out! Haven't looked at it in weeks. I do not miss it. Fuck spez!

3
2
submitted 1 year ago by [email protected] to c/[email protected]

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?

4
2
Lest we forget (lemmy.world)
submitted 1 year ago by [email protected] to c/[email protected]

Fuck Ajit Pai while we're at it.

5
1
submitted 1 year ago by [email protected] to c/[email protected]
6
5
submitted 1 year ago by [email protected] to c/[email protected]

You can create a simple regex blacklist in pihole to prevent any accidental clicks on reddit links from generating ad revenue

7
2
submitted 1 year ago by [email protected] to c/[email protected]

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 🤣

8
1
submitted 1 year ago by [email protected] to c/[email protected]
9
3
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]

Spez behaves like a 7 year old. He has 0 logical reasoning. "Third party apps are 90% of the platform. We need people to use our official app so we can be profitable." logical answer here is "make the official app good", spez answer is "kill third party apps". What a sad joke.

10
2
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]

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

11
1
Fuck u/spez (lemmy.world)
submitted 1 year ago by [email protected] to c/[email protected]

I had to say my mind, I have been using Apollo for years, but now I’m pissed off. Thanks, pig fucker

12
3
submitted 1 year ago by [email protected] to c/[email protected]

On to new horizons!

13
2
So long, Reddit! (lemmy.world)
submitted 1 year ago by [email protected] to c/[email protected]

...and FUCK YOU spez!

14
1
submitted 1 year ago by [email protected] to c/[email protected]

I'd been reporting the filthy fucker for over a week as had other people and nothing happened so I reported it directly to spez.

He banned me for harassment.

The CP seller still wasn't removed.

Tbf im not sure what I expected from someone that looks like a ventriloquist dummy that came to life so it could become a sex offender.

15
1
Unfit for CEO (lemmy.world)
submitted 1 year ago by [email protected] to c/[email protected]

Can you imagine being CEO of a company with free content creation, free moderation, free app developers, and being wildly popular with consumers and yet still not being able to turn a profit?

AND still be allowed to keep your job?

https://reddit.com/r/reddit/comments/145bram/_/jnkd09c/?context=1

16
1
submitted 1 year ago by [email protected] to c/[email protected]

I was thinking when I was spamming the AMA, hey, so many people are saying fuck u/spez, so why not create a community to make a message, but then I realized that it wouldn't do much since it's too late to make a community on Reddit. Plus, that would get banned on Reddit in like a day.

fuck u/spez

1685 readers
2 users here now

For people who stay out of it.

founded 1 year ago
MODERATORS