adpro commited on
Commit
0cfd1e3
·
verified ·
1 Parent(s): 504d0ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,10 +18,10 @@ def run_lora(prompt,site,start,end):
18
  }
19
  page = requests.get(murl,headers)
20
  print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
21
- soup = BeautifulSoup(page.text, 'html.parser')
22
  search_results = []
23
  #MjjYud
24
- for g in soup.find_all('div',class_=re.compile(r'tF2Cxc')):
25
  print(g)
26
  title = g.find('h3').text if g.find('h3') else 'No title'
27
  link = g.find('a')['href']
 
18
  }
19
  page = requests.get(murl,headers)
20
  print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
21
+ soup = BeautifulSoup(page.content)
22
  search_results = []
23
  #MjjYud
24
+ for g in soup.find_all("div",class_=re.compile(r"tF2Cxc")):
25
  print(g)
26
  title = g.find('h3').text if g.find('h3') else 'No title'
27
  link = g.find('a')['href']