This commit is contained in:
imnyang 2024-11-06 17:14:20 +09:00
commit bf706e58d8
14 changed files with 297 additions and 0 deletions

17
app/library/init-auth.py Normal file
View file

@ -0,0 +1,17 @@
import library.vts as vts
vts.download(vts.get_board())
from instagrapi import Client
import json, os
import time
cl = Client()
cl.login(os.getenv("INSTAGRAM_ID"), os.getenv("INSTAGRAM_PASSWORD"))
json.dump(
cl.get_settings(),
open(f'{os.getenv("ROOT")}temp/cookies.json', 'w')
)
print("🍪 | Account information was successfully retrieved.")
print(f"📅 | Job ended at {time.time()}")