Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,10 @@ def run_lora(prompt,site,start,end):
|
|
18 |
}
|
19 |
page = requests.get(murl,headers)
|
20 |
print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
|
21 |
-
soup = BeautifulSoup(page.
|
22 |
search_results = []
|
23 |
#MjjYud
|
24 |
-
for g in soup.find_all(
|
25 |
print(g)
|
26 |
title = g.find('h3').text if g.find('h3') else 'No title'
|
27 |
link = g.find('a')['href']
|
|
|
18 |
}
|
19 |
page = requests.get(murl,headers)
|
20 |
print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
|
21 |
+
soup = BeautifulSoup(page.content)
|
22 |
search_results = []
|
23 |
#MjjYud
|
24 |
+
for g in soup.find_all("div",class_=re.compile(r"tF2Cxc")):
|
25 |
print(g)
|
26 |
title = g.find('h3').text if g.find('h3') else 'No title'
|
27 |
link = g.find('a')['href']
|