adpro commited on
Commit
9f588b1
·
verified ·
1 Parent(s): e5b1ffa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -19,6 +19,7 @@ def run_lora(prompt,site,start,end):
19
  import re
20
  search_results = []
21
  for g in soup.find_all('div', class_='tF2Cxc'):
 
22
  title = g.find('h3').text if g.find('h3') else 'No title'
23
  link = g.find('a')['href']
24
  snippet = g.find('div', class_='IsZvec').text if g.find('div', class_='IsZvec') else 'No snippet'
 
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']
25
  snippet = g.find('div', class_='IsZvec').text if g.find('div', class_='IsZvec') else 'No snippet'