Omnibus commited on
Commit
70197c9
1 Parent(s): bcb88e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -10,9 +10,8 @@ def search_fn(query):
10
 
11
  links = soup.findAll("a")
12
  for link in soup.find_all("a",href=re.compile("(?<=/url\?q=)(htt.*://.*)")):
13
- out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0].replace("['", "")))
14
- #out = re.split("&sa",1)[0]
15
- #out = re.replace("['", "")
16
  print (out)
17
  #return out
18
 
 
10
 
11
  links = soup.findAll("a")
12
  for link in soup.find_all("a",href=re.compile("(?<=/url\?q=)(htt.*://.*)")):
13
+ out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0]))
14
+ out = re.strip("[","'","]")
 
15
  print (out)
16
  #return out
17