JackLSauce

joined 2 years ago
[–] JackLSauce 5 points 1 hour ago

"Yes! If by allow you mean force"

[–] JackLSauce 1 points 6 hours ago

I finally understand why Apple names 2 of their products the Newton and Pippin

[–] JackLSauce 29 points 23 hours ago (3 children)

Sounds like you're salaried. Generally those jobs care about getting your work done more than watching a clock or waiting for phones to ring

If you have a decent boss, explaining what happened and asking if you can just take off a different day this coming week would probably be fine, even if Tuesday isn't feasible on such short notice. Personally, I'd be gunning for Friday (assuming you have the normal weekend days off)

If that conversation is considered a problem, then it's time to see if the company's competitors are hiring for your position

[–] JackLSauce 2 points 2 days ago
[–] JackLSauce 21 points 2 days ago

Richard move, Dick

[–] JackLSauce 2 points 4 days ago

You can just make them talk to one of those shitty models from the early 2010s

[–] JackLSauce 1 points 5 days ago

No, there's 3 of those movies:

  • Goldmember
  • Wayne's World
  • Shrek 2
[–] JackLSauce 2 points 6 days ago

I think you mean heresy

[–] JackLSauce 3 points 1 week ago (2 children)

Langoliers but worse special effects

[–] JackLSauce 6 points 1 week ago
[–] JackLSauce 2 points 2 weeks ago

Looks at Thriller video

.... Define "dead"

[–] JackLSauce 6 points 2 weeks ago (1 children)

Aktually it's:

"No I am your Jake SOO-leee"

 
 
 

I thought this would be dead simple but trying to label a road as "bike-friendly" isn't as intuitive as one would hope (am I "adding" a road even though it's technically there or reporting "wrong info" piece by piece?)

 
199
submitted 11 months ago by JackLSauce to c/showerthoughts
 
 
 
7
Mopac Trail (lemmy.world)
submitted 1 year ago by JackLSauce to c/lincoln
 
54
submitted 2 years ago by JackLSauce to c/dogs
 
 

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 more: next ›