adpro commited on
Commit
dcb0b03
·
verified ·
1 Parent(s): a4601fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")