모든 버그 해결

This commit is contained in:
imnyang 2024-11-06 22:57:35 +09:00
commit e19aa64c8f
14 changed files with 96 additions and 31 deletions

View file

@ -5,12 +5,18 @@ from instagrapi import Client
import json, os
import time
with open('../config.json') as json_file:
json_data = json.load(json_file)
ROOT = json_data['ROOT']
INSTAGRAM_AUTH = [json_data['INSTAGRAM_ID'], json_data['INSTAGRAM_PASSWORD']]
cl = Client()
cl.login(os.getenv("INSTAGRAM_ID"), os.getenv("INSTAGRAM_PASSWORD"))
cl.login(INSTAGRAM_AUTH[0], INSTAGRAM_AUTH[1])
json.dump(
cl.get_settings(),
open(f'{os.getenv("ROOT")}temp/cookies.json', 'w')
open(f'{ROOT}temp/cookies.json', 'w')
)
print("🍪 | Account information was successfully retrieved.")