Fix API token fetching
This commit is contained in:
parent
e335cd48bb
commit
75f3e2220e
|
@ -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....",
|
||||
|
|
Loading…
Reference in New Issue