NoCrypt commited on
Commit
002eb1a
·
verified ·
1 Parent(s): 61520c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 "external_polymer_binary" in str(script):
24
 
25
  r_js = requests.get(script['src'])
26
  # print(r_js.text)
27
 
28
- pattern = r"'(.*?)webui(.*?)'"
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