• 0 Posts
  • 74 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle



















  • 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.