Thanks for the reply! I have accounts on lemm.ee and lemmy.world that use 2FA. Also have one with lemmy.sdf.org, but that one requires account creation approval.
Just curious, will this script work if you have 2FA enabled on your Lemmy accounts?