Skip to content

Commit

Permalink
Merge pull request #25 from davidcm/master
Browse files Browse the repository at this point in the history
Get token scripts content with .string instead of .text.
  • Loading branch information
trocotronic authored Jul 23, 2023
2 parents c271fa0 + 0b45a52 commit 03368c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EdistribucionAPI/Edistribucion.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def __get_token(self):
scripts = soup.find_all('script')
logging.info('Loading token scripts')
for s in scripts:
if ('auraConfig' in s.text):
prsr = jsparse(s.text)
if ('auraConfig' in s.string):
prsr = jsparse(s.string)
for b in prsr['body']:
decls = b.get('expression', {}).get('callee', {}).get('body', {}).get('body', [])
for d in decls:
Expand Down

0 comments on commit 03368c8

Please sign in to comment.