모든 버그 해결
This commit is contained in:
parent
be4d6616f0
commit
e19aa64c8f
14 changed files with 96 additions and 31 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue