adpro commited on
Commit
c0c6a1f
·
verified ·
1 Parent(s): cdb3948

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ def run_lora(prompt,site,start,end):
11
  import re
12
  links = soup.findAll("a")
13
  mLink=""
14
- for link in soup.find_all("a", "html.parser", parse_only=SoupStrainer('a')):
15
- #for link in soup.find_all("a",href=re.compile("(?<=/url\?q=)(htt.*://.*)")):
16
  print (re.split(":(?=http)",link["href"].replace("/url?q=","")))
17
  mLink+=str(re.split(":(?=http)",link["href"].replace("/url?q=","").replace("'","")))
18
  return mLink
 
11
  import re
12
  links = soup.findAll("a")
13
  mLink=""
14
+ #for link in soup.find_all("a", "html.parser", parse_only=SoupStrainer('a')):
15
+ for link in soup.find_all("a","html.parser",href=re.compile("(?<=/url\?q=)(htt.*://.*)")):
16
  print (re.split(":(?=http)",link["href"].replace("/url?q=","")))
17
  mLink+=str(re.split(":(?=http)",link["href"].replace("/url?q=","").replace("'","")))
18
  return mLink