Ac5000

joined 1 year ago
[–] Ac5000@lemm.ee 3 points 1 year ago* (last edited 1 year ago)

Thank you for posting this with the explanations and great visuals! I am wanting to upgrade to a setup almost identical to this and you've basically given me the bill of materials and task list.

Anything you wish you had done differently or suggest changing/upgrading before I think about putting something similar together?

[–] Ac5000@lemm.ee 6 points 1 year ago

I'll throw my code into the ring as well. I posted it over in the Python community and have been using it myself.

It's not the most user friendly yet though. Still working on improving it as I get time though and open to suggestions/requests.

https://github.com/Ac5000/lemmy_account_sync

https://lemm.ee/post/608605

[–] Ac5000@lemm.ee 3 points 1 year ago (1 children)

Sorry for the delay in getting back.

Currently it will not work with 2FA enabled. However, looking at the login post requirements I just need to add that as an option to put in the config.

I'll reply to this comment again when I get something put together. I'll add it to the GitHub issues list for tracking as well.

However, could you recommend an instance that uses 2FA for login so I can make an account to test it? I see the field in my current instances but would like something fresh to try it on.

[–] Ac5000@lemm.ee 2 points 1 year ago (1 children)

Someone already posted the wescode migrate, but here's my Python code that does a bit more. It's not the most user friendly yet, but I'm working on it.

https://github.com/Ac5000/lemmy_account_sync

[–] Ac5000@lemm.ee 2 points 1 year ago

Correct. lemmy.world was my original account. But with the server strain going on, I've hopped over to lemm.ee and also have a couple other accounts. Just run this script every so often and all your accounts will more or less feel like the same account.

[–] 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.

view more: ‹ prev next ›