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