Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,8 @@ def run_lora(prompt,site,start,end):
|
|
| 15 |
surl = "https://www.google.com/search?q=site:" +site + " " +prompt + "after:"+start+"before:" + end
|
| 16 |
page = requests.get(murl)
|
| 17 |
print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
|
| 18 |
-
soup = BeautifulSoup(
|
|
|
|
| 19 |
search_results = []
|
| 20 |
for g in soup.find_all('div', class_='MjjYud'):
|
| 21 |
print(g)
|
|
|
|
| 15 |
surl = "https://www.google.com/search?q=site:" +site + " " +prompt + "after:"+start+"before:" + end
|
| 16 |
page = requests.get(murl)
|
| 17 |
print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
|
| 18 |
+
soup = BeautifulSoup(response.text, 'html.parser')
|
| 19 |
+
print(soup)
|
| 20 |
search_results = []
|
| 21 |
for g in soup.find_all('div', class_='MjjYud'):
|
| 22 |
print(g)
|