NoCrypt commited on
Commit
60189cc
·
verified ·
1 Parent(s): 002eb1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -20,13 +20,14 @@ 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_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
 
32
  # trim 1 char front and back, split the text with ';' into array
 
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.js" 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
+ # print("match", match)
31
  raw_string = match.group(0)
32
 
33
  # trim 1 char front and back, split the text with ';' into array