Horhik / Instagram2Fedi

Python script for crossposting from Instagram to Mastodon or Pixelfed
GNU General Public License v3.0
91 stars 7 forks source link

Add --scheduled, --verbose, and no user. #17

Closed neilcar closed 1 year ago

neilcar commented 1 year ago

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.

Horhik commented 1 year ago

@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.