3
jestdotty
16d

I wanna automatically run a script on reddit to delete certain comments that meet certain criteria

as a dev process, reddit allows you to register "an app" and it will give you an app id via email

and also give you an app secret which is like the password to use the app

and then couple that with a username and password, you can call a REST API and do things automatically on the website. super easy

I just use this to look at comments and posts I made and delete them if the word per upvote count is below a certain threshold. this way I don't leak too much personal data and can also look at my post history and laugh at things I said that others curated for me

well

I had deleted the CI/CD project I had on gitlab that would run this script every week. I kept the script's code in my notes though. I stopped using reddit so I had just deleted the gitlab project since there was no point in doing the cleanup

few months ago I started using reddit for some reason and left some posts. I couldn't remember if I still had this script running or not but it became evidently that my comments were not automatically cleaned up therefore it was not running

I found the script, made a new project for it just now... but. to do CI/CD scripts you put all your secrets and stuff into environmental variables. since I had deleted the gitlab repository I no longer had access to the secrets. no problem right, I cns just go on Reddit again and get my app secrets, right?

well turns out the app is is only ever mailed to you. I can't see it. I have the app secret though

I tried to figure out which email address would've received the email. ok it was a throwaway protonmail email

I try to log in... deleted due to inactivity. and you can't remake the same email address because it would be a security concern. annoying but fine

I try to change the email address reddit knows me by... and it wants to send a confirmation email to the existing email to allow me to do it... but I don't have access to the existing email because proton deleted it due to inactivity -.-

so I literally can't delete comments on this reddit account because I can't get access to an email address I can totally log in fine into but protonmail decided to delete due to inactivity and won't allow me to remake and reddit won't allow me to give it a different email address without first using the original deleted one...

this is like bureaucracy hell

technology sucks

Comments
  • 4
    I wrote this up and then 5 seconds later in rapid succession realized I was wrong on 2 accounts

    ... it just wants the new email to be confirmed, not the old one. but I read the prompt too fast

    and I had spotted where the app id is in the dev console so I don't need no stinking email after all!
  • 3
    The deletion criteria: "I like big butts and I cannot lie."
Add Comment