I'm using this as a cron job instead of a continuous bot. I added a flag (--scheduled) and an env var (I2M_SCHEDULED) that run Instagram2Fedi a single time then exits instead of running it continuously.
Additionally, I added --verbose/I2M_VERBOSE so that secrets like user-password and token aren't sent to stdout by default.
Finally, it appears that not logging on works, at least for awhile, before IG starts forcing a login. If user-name is None, I added an if block to skip IG login. This has worked for me in my cron job but, if I leave the bot running, I get an auth error after a few runs.
@neilcar, thanks you a lot!!! I really appreciate, that someone contributing to my accident project. I saw you PW a long time ago, but currently don't feel enough desire to active support the project.
I'm using this as a cron job instead of a continuous bot. I added a flag (
--scheduled
) and an env var (I2M_SCHEDULED
) that run Instagram2Fedi a single time then exits instead of running it continuously.Additionally, I added
--verbose
/I2M_VERBOSE
so that secrets likeuser-password
andtoken
aren't sent to stdout by default.Finally, it appears that not logging on works, at least for awhile, before IG starts forcing a login. If
user-name
is None, I added anif
block to skip IG login. This has worked for me in my cron job but, if I leave the bot running, I get an auth error after a few runs.