adpro commited on
Commit
bb5192f
·
verified ·
1 Parent(s): e5ce082

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -16,9 +16,7 @@ def run_lora(prompt,site,start,end):
16
  response = requests.get(url)
17
  soup = BeautifulSoup(response.text, 'html.parser')
18
  links = soup.findAll("a")
19
- import re
20
- for link in soup.find_all("a",href=re.compile("(?<=/url\?q=)(htt.*://.*)")):
21
- print(re.split(":(?=http)",extract_href(link["href"])))
22
  j = extract_results(soup)
23
  print(j)
24
 
 
16
  response = requests.get(url)
17
  soup = BeautifulSoup(response.text, 'html.parser')
18
  links = soup.findAll("a")
19
+
 
 
20
  j = extract_results(soup)
21
  print(j)
22