Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def run_lora(prompt,site,start,end):
|
|
| 11 |
|
| 12 |
# to search
|
| 13 |
query = "Python programming"
|
| 14 |
-
url =
|
| 15 |
response = requests.get(url)
|
| 16 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 17 |
print(soup)
|
|
|
|
| 11 |
|
| 12 |
# to search
|
| 13 |
query = "Python programming"
|
| 14 |
+
url = f"https://www.google.com/search?q=inurl:{site}+{prompt}&tbs=cdr%3A1%2Ccd_min%3A{start}%2Ccd_max%3A {end}"
|
| 15 |
response = requests.get(url)
|
| 16 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 17 |
print(soup)
|