Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,8 @@ def search_fn(query):
|
|
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=","")))
|
|
|
|
|
14 |
print (out)
|
15 |
#return out
|
16 |
|
|
|
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=","")))
|
14 |
+
out = out.split("&sa",1)[0]
|
15 |
+
out = out.replace("['", "")
|
16 |
print (out)
|
17 |
#return out
|
18 |
|