Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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]
|
14 |
-
|
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 |
|