adpro commited on
Commit
cea0768
·
verified ·
1 Parent(s): 53e71c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -15,10 +15,9 @@ 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(page.text)
19
- import re
20
  search_results = []
21
- for g in soup.find_all('div', class_='tF2Cxc'):
22
  print(g)
23
  title = g.find('h3').text if g.find('h3') else 'No title'
24
  link = g.find('a')['href']
 
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(page.text, 'html.parser')
 
19
  search_results = []
20
+ for g in soup.find_all('div', class_='MjjYud'):
21
  print(g)
22
  title = g.find('h3').text if g.find('h3') else 'No title'
23
  link = g.find('a')['href']