https://github.com/andrewbanchich/shreddit

I opened terminal with my comment.csv put in the desktop

  1. I did cargo install shreddit

  2. Then made the reddit app credentials

  3. Then did shreddit --username YouRedditUsername --password YourSuperSecretPassword123 --client-id clientidreplace --client-secret clientsecretreplace --gdpr-export-dir ~/Desktop/comments.csv

With the relevant information replaced with my own. But after I click enter nothing more happens like a message saying deleting or anything like that. Just cursor blinking. So do I just leave it alone or did something go wrong?

Update : Using the shreddit-linux file ended up working for me. On Linux to run it I had to right click it then go to properties and then allow executable. Then to run it in terminal I had to go to the directory shreddit-linux was in and type ./shreddit-linux.

Also, you have to make sure you extract all the GDPR files together. If it is missing one it needs you get an error, so after some error messages extracting everything fixed it for me and got it to start deleting.

  • explodingkitchen@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Okay, so it sounds like you’ve created the Reddit credentials. You also have shreddit installed and your $PATH variable changed, since ‘shreddit --version’ is giving you 0.9.1 instead of an error message.

    TBH, I don’t think installing shreddit via cargo creates a shreddit.env file. I just opened a new file in a text editor (I use Pluma), did a copy/paste of the body of the shreddit.env.example file, and then changed the fields to match my account info, client ID, etc.
    Then I created a new directory called cargo_shreddit to keep all the mess in one place. I extracted my GDPR files into cargo_shreddit, put my shreddit.env file in there too, changed to that directory, and used the command “shreddit”.

    My ISP connection can be flaky, so occasionally it would crap out on me with a panic error–sometimes after deleting 50 entries, sometimes after doing thousands. To deal with that, I made a backup copy of my original comments.csv file, then simply edited my comments.csv file as I went along, keeping the first line of the file (the one that says ‘id,permalink,date,ip,subreddit,gildings,link,parent,body,media’) but deleting the entries for any comments I’d already successfully done. It took several hours to do it all, but you should see a steady stream of messages while it’s happening to let you know which comments it’s working on.

    ETA: This is what my shreddit.env file looks like, with all the passwords, etc., changed to random values.

    SHREDDIT_USERNAME=‘explodingkitchen’
    SHREDDIT_PASSWORD=‘!hKL1ltVc7FbpOa4’
    SHREDDIT_CLIENT_ID=‘uj$6LWzilcGPD*3&’
    SHREDDIT_CLIENT_SECRET=‘z5&L%cC1Wj#Gid^3QUYMuqv2d#EH#’
    SHREDDIT_DRY_RUN=false
    SHREDDIT_USER_AGENT=‘ShredditRustClient’
    SHREDDIT_EDIT_ONLY=false
    SHREDDIT_GDPR_EXPORT_DIR=‘/home/explodingkitchen/cargo_shreddit’

    second ETA: And in case you’re wondering whether the problem is with your Reddit credentials, I very much doubt it. I just tried screwing up mine and it gives a distinct error message instead of the blinking cursor of WTF. When I restored them, shreddit worked again, so it’s also not that Reddit’s shut something down.