this post was submitted on 14 Jul 2023
2 points (100.0% liked)

Reddit Migration

12 readers
2 users here now

### About Community Tracking and helping #redditmigration to Kbin and the Fediverse. Say hello to the decentralized and open future. To see latest reeddit blackout info, see here: https://reddark.untone.uk/

founded 1 year ago
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] explodingkitchen@kbin.social 1 points 1 year ago (1 children)

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@kbin.social 1 points 1 year ago (1 children)

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@kbin.social 2 points 1 year ago* (last edited 1 year ago) (1 children)

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@kbin.social 1 points 1 year ago (1 children)

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@kbin.social 2 points 1 year ago (1 children)

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

[–] ImaginaryFox@kbin.social 1 points 1 year ago (1 children)

So just run like the usual command? like

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

[–] explodingkitchen@kbin.social 2 points 1 year ago (1 children)

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@kbin.social 1 points 1 year ago (1 children)

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

[–] explodingkitchen@kbin.social 2 points 1 year ago

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