From 185c0d0b9c260ca03a8c58fb958bb280329e822c Mon Sep 17 00:00:00 2001 From: Martin Lykke Date: Mon, 14 Aug 2023 13:50:41 +0200 Subject: [PATCH] release --- src/NativeAPI.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/NativeAPI.py b/src/NativeAPI.py index df8fca1..0aa211c 100644 --- a/src/NativeAPI.py +++ b/src/NativeAPI.py @@ -287,13 +287,11 @@ def __get_idk(self, soup): scripts = soup.find_all('script') for script in scripts: if script.string and 'window._IDK' in script.string: - print(script.string) try: idk_txt = '{'+re.search(r'\{(.*)\}', script.string, re.M | re.S).group(1)+'}' idk_txt = re.sub( r'([\{\s,])(\w+)(:)', r'\1"\2"\3', idk_txt.replace('\'', '"')) - print(idk_txt) idk = yaml.load(idk_txt, Loader=yaml.FullLoader) return idk except json.decoder.JSONDecodeError: