Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ def run_lora(prompt,site,start,end):
|
|
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 |
-
|
24 |
jj = extract_href(link["href"])
|
25 |
-
print(
|
26 |
-
mLink+=str(
|
27 |
return mLink
|
28 |
|
29 |
def extract_href(href):
|
|
|
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 |
+
jjj =re.split(":(?=http)",link["href"].replace("/url?q=",""))
|
24 |
jj = extract_href(link["href"])
|
25 |
+
print(jjj)
|
26 |
+
mLink+=str(jjj)
|
27 |
return mLink
|
28 |
|
29 |
def extract_href(href):
|