Init
This commit is contained in:
commit
bf706e58d8
14 changed files with 297 additions and 0 deletions
17
app/library/init-auth.py
Normal file
17
app/library/init-auth.py
Normal 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()}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue