adpro commited on
Commit
54811ce
·
verified ·
1 Parent(s): 6b43549

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- #print (re.split(":(?=http)",link["href"].replace("/url?q=","")))
24
  jj = extract_href(link["href"])
25
- print(jj)
26
- mLink+=str(jj)
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):