Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def run_lora(prompt,site,start,end):
|
|
12 |
j = "https://www.google.com/search?q=inurl:"+site +"+"+ prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end
|
13 |
links=""
|
14 |
|
15 |
-
page = requests.get(j)
|
16 |
soup = BeautifulSoup(page.content)
|
17 |
import re
|
18 |
links = soup.findAll("a")
|
|
|
12 |
j = "https://www.google.com/search?q=inurl:"+site +"+"+ prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end
|
13 |
links=""
|
14 |
|
15 |
+
page = requests.get(j, headers = {'User-agent': 'Xelu bot 0.1'})
|
16 |
soup = BeautifulSoup(page.content)
|
17 |
import re
|
18 |
links = soup.findAll("a")
|