Update init-auth.py

This commit is contained in:
2025-01-09 22:37:39 +09:00 committed by GitHub
commit 91a6744100
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,7 @@ with open('./config.json') as json_file:
cl = Client() cl = Client()
cl.set_proxy("socks5h://localhost:9999")
code = cl.totp_generate_code(INSTAGRAM_AUTH[2]) code = cl.totp_generate_code(INSTAGRAM_AUTH[2])
cl.login(INSTAGRAM_AUTH[0], INSTAGRAM_AUTH[1], verification_code=code) cl.login(INSTAGRAM_AUTH[0], INSTAGRAM_AUTH[1], verification_code=code)
cl.set_timzone_offset(9 * 60 * 60) cl.set_timzone_offset(9 * 60 * 60)