this post was submitted on 03 Jul 2023
88 points (100.0% liked)

Python

6230 readers
41 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

October 2023

November 2023

PastJuly 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

After seeing the work someone else did with migrating your subscriptions across accounts. I took their code and expanded upon it to fully synchronize your Lemmy instance accounts.

Feel free to give it a try. It's been useful for me to have accounts in multiple instances with the instability problems right now from the big influx of users.

Let me know what you think. Hopefully it can help a few people.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Nullify9964@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks for this! I haven't been able to get it to work yet but it seems to be because the instances I use are dealing with issues.

Edit: Finally managed to get the script to complete. My advice for anyone trying this is if you run into a 502 error it's most likely that the instance is getting hammered and that you should try again later

[โ€“] Ac5000@lemm.ee 1 points 1 year ago* (last edited 1 year ago)

Yeah, for anyone that gets the 502 gateway error. That means the instance was down when it tried to login/didn't respond. I'm going to revisit this part of the code later and see if I can fix/handle that happening so it at least goes through with the rest of the accounts. If it happens to you, just run it again and hopefully you'll get through at least once.

Subsequent runs actually hit the servers with less requests since you can pull most of the info you need with the initial site response and I check that before making any needed requests.

Also, someone else mentioned they had a problem with the none type thing. I'm using Python 3.11 and forgot to specify that. I'll add it to the readme when I get a chance.