Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,12 +20,12 @@ def get_blocked_urls():
|
|
20 |
soup = BeautifulSoup(r.text, 'html.parser')
|
21 |
# search for script that contains "external_polymer_binary" in attr
|
22 |
for script in soup.find_all('script'):
|
23 |
-
if "
|
24 |
|
25 |
r_js = requests.get(script['src'])
|
26 |
# print(r_js.text)
|
27 |
|
28 |
-
pattern = r"'(.*?)
|
29 |
match = re.search(pattern, r_js.text)
|
30 |
raw_string = match.group(0)
|
31 |
|
|
|
20 |
soup = BeautifulSoup(r.text, 'html.parser')
|
21 |
# search for script that contains "external_polymer_binary" in attr
|
22 |
for script in soup.find_all('script'):
|
23 |
+
if "external_binary" in str(script):
|
24 |
|
25 |
r_js = requests.get(script['src'])
|
26 |
# print(r_js.text)
|
27 |
|
28 |
+
pattern = r"'(.*?)EasyGUI(.*?)'"
|
29 |
match = re.search(pattern, r_js.text)
|
30 |
raw_string = match.group(0)
|
31 |
|