adpro commited on
Commit
4d452fd
·
verified ·
1 Parent(s): 32c3f58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,10 +8,10 @@ from googlesearch import search
8
  from urllib.parse import parse_qs
9
 
10
  def run_lora(prompt,site,start,end):
11
- murl = "https://www.google.com/search?q=inurl:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end
12
- surl = "https://www.google.com/search?q=inurl:" +site + " " +prompt + "after:"+start+"before:" + end
13
  page = requests.get(murl)
14
- print("https://www.google.com/search?q=inurl:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
15
  soup = BeautifulSoup(page.content)
16
  import re
17
  links = soup.findAll("a")
 
8
  from urllib.parse import parse_qs
9
 
10
  def run_lora(prompt,site,start,end):
11
+ murl = "https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end
12
+ surl = "https://www.google.com/search?q=site:" +site + " " +prompt + "after:"+start+"before:" + end
13
  page = requests.get(murl)
14
+ print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
15
  soup = BeautifulSoup(page.content)
16
  import re
17
  links = soup.findAll("a")