adpro commited on
Commit
32c3f58
·
verified ·
1 Parent(s): 6be3acd

Update app.py

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