Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +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 |
for link in soup.find_all("a",href=re.compile("(?<=/url\?q=)(htt.*://.*)")):
|
20 |
print(re.split(":(?=http)",extract_href(link["href"])))
|
21 |
j = extract_results(soup)
|
|
|
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)
|