You are only browsing one thread in the discussion! All comments are available on the post page.

Return

explodingkitchen ,

Works for me on Ubuntu. Instead of using command-line arguments, I put a shreddit.env file in the same directory where my GDPR files were extracted, then did a cd to that directory before running shreddit. I've got single quotes around the passwords, etc. in the shreddit.env file.

ImaginaryFox OP ,

Could you do a step by step guide on set up? I'm clueless so don't even know where the shreddit.env file is after installing through cargo. Had tried the manual method too of downloading the Linux file on github.

explodingkitchen , (edited )

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.

ImaginaryFox OP ,

I think I'm understanding it. So I should use txt to make the env file and put it in a folder with my extracted csv file. What command should I use to run the env file? That's something I haven't encountered before on Linux.

explodingkitchen ,

You don't run it. When shreddit executes, it will check the current directory for a shreddit.env file.

ImaginaryFox OP ,

So just run like the usual command? like

shreddit --username YouRedditUsername --password YourSuperSecretPassword123 --client-id clientidreplace --client-secret clientsecretreplace

explodingkitchen ,

You don't have to specify any arguments you've put in the shreddit.env file. Or anything with defaults you're okay with. So you can just type "shreddit" and hit enter. Anything you put on the command line will probably override what's in the shreddit.env file.

ImaginaryFox OP ,

Thanks for the help. I'll give this method a try. Hope it works.

explodingkitchen ,

Good luck. If that doesn't do it, the suggestion another commenter made to try strace sounds worthwhile.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • All magazines