Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def run_lora(prompt,site,start,end):
|
|
19 |
print(links)
|
20 |
mLink=""
|
21 |
#for link in soup.find_all("a", "html.parser", parse_only=SoupStrainer('a')):
|
22 |
-
for link in soup.find_all("a",
|
23 |
print (re.split(":(?=http)",link["href"].replace("/url?q=","")))
|
24 |
mLink+=str(re.split(":(?=http)",link["href"].replace("/url?q=","").replace("'","")))
|
25 |
|
|
|
19 |
print(links)
|
20 |
mLink=""
|
21 |
#for link in soup.find_all("a", "html.parser", parse_only=SoupStrainer('a')):
|
22 |
+
for link in soup.find_all("a",href=re.compile("(?<=/url\?q=)(htt.*://.*)")):
|
23 |
print (re.split(":(?=http)",link["href"].replace("/url?q=","")))
|
24 |
mLink+=str(re.split(":(?=http)",link["href"].replace("/url?q=","").replace("'","")))
|
25 |
|