Auth Cache
This commit is contained in:
parent
b5ca577151
commit
96748fb97f
4 changed files with 6 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ cl.get_settings()
|
|||
|
||||
json.dump(
|
||||
cl.get_settings(),
|
||||
open(f'{ROOT}/temp/cookies.json', 'w')
|
||||
open(f'{ROOT}/temp/auth/cookies.json', 'w')
|
||||
)
|
||||
|
||||
print("🍪 | Account information was successfully retrieved.")
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ else:
|
|||
MLSV_YMD = (datetime.now() + timedelta(days=1)).strftime('%Y%m%d')
|
||||
|
||||
print("🍪 | Retrieving saved account information.")
|
||||
cl = Client(json.load(open('./temp/cookies.json')))
|
||||
cl = Client(json.load(open('./temp/auth/cookies.json')))
|
||||
cl.set_proxy("socks5h://localhost:9999")
|
||||
|
||||
print("🍪 | Account information was successfully retrieved.")
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ cd ${BOT_ROOT}
|
|||
|
||||
|
||||
# If doesn't have temp/cookies.json, create it
|
||||
if [ ! -f "./temp/cookies.json" ]; then
|
||||
if [ ! -f "./temp/auth/cookies.json" ]; then
|
||||
python3 library/init-auth.py
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue