How does this work when you have different communities on different instances?
post
Another great option is the browser app (shortcut bookmark, don’t go to the App Store) Voyager at !voyagerapp@lemmy.world.
It has a multireddit link import option that I really enjoyed. You basically go to your Reddit account, grab the multireddit link and import it on the app.
Voyager is excellent for those that loved Apollo. Has a similar feel.
Windows users: fwiw, i didn't want to go deal with Python and Chromium in Windows, so I tried to do this in WSL (v1) and gave up. Probably easily done in WSL v2, or with just using the Windows versions of everything.
Yeah, probably. I just try to make stuff cross-platform when it's not something that's probably only used on windows machines. Plus I'm trying to get better at python
I don't have my Reddit accounts anymore but I did backup a list of subs. Can I use that list with your tool?
First off, thank you for your work on this!
So I'm trying this out in WSL2 and I managed to get the script to run... but I have TOTP enabled on my reddit account. Any chance this could support MFA? I'm using the correct username and password I get "Incorrect username or password" so I'm sure it's the TOTP requirement not being met.
Yeah, totp isn't supported. Two workarounds, both of which include some work on your side:
- bypass reddit usage by the sxriot:
- copy the link to your multireddit from old.reddit/subreddits. Now you have all your subreddits.
- Paste them into a text editor
- delete everything up until and including /r/, do search and replace replacing + with ',' (including the apostrophes).
- At the beginning, add [' and at the end add ']. You should now have [] brackets and within all your subreddits in apostrophes and separated by a comma.
- Copy all that and paste it in the script in line 267 so it reads :
subs = ['subreddit1','subreddit2',etc]
- Comment out lines 252-256 by adding # to the beginning of the line.
- Run the script and it should work.
- use totp/mfa:
- enable change DEBUG=0 to DEBUG=1 at the top of the script.
- comment out lines 90-93 and 255 by adding # to the beginning of the line
- in line 94 change "time.sleep(3)" to "time.sleep(60)"
- run the script. Now you should see a chrome window open and do stuff. Once you get to the reddit page, login how you normally would and wait. You have 60 seconds to do this and from there on the script should run normally.
Let me know if you have questions or issues
Thank you again for going to the trouble of making this workaround.
I went with Option 1 and I got an error "Error joining Lemmy communities." So I ran the script with the DEBUG option and I saw that after a few (can't remember how many) searches the site started responding with a rate limit error for the rest of the searches.
Does it need Chrome to be installed? I’m not an expert with python error messages:
The version of chrome cannot be detected. Trying with latest driver version Traceback (most recent call last): File "/Users/myname/Downloads/reddit-lemmy-migrator.py", line 33, in driver = webdriver.Chrome(options=chrome_options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
top 25 comments