1
0
Fork 0

Fix API token fetching

This commit is contained in:
Lucidiot 2020-06-24 10:29:03 +02:00
parent e335cd48bb
commit 75f3e2220e
No known key found for this signature in database
GPG Key ID: FF629EE969FFE294
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ def _fetch_api_token(session):
all_script = soup.findAll("script")
for script in all_script:
for line in script.text.splitlines():
if not script.string:
continue
for line in script.string.splitlines():
if 'api_token' in line:
# api_token: "xoxs-12345-abcdefg....",
# "api_token":"xoxs-12345-abcdefg....",