Omnibus commited on
Commit
6cbf30b
·
verified ·
1 Parent(s): 4eb4a20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -207,6 +207,7 @@ def find_rss():
207
  #lod=""
208
  print (ea['link'])
209
  rss_url=ea['link']
 
210
  r = requests.get(f'{rss_url}')
211
  if r.status_code == 200:
212
  try:
@@ -237,7 +238,9 @@ def find_rss():
237
  r_link = lod['rss']['channel']['item'][i]['link']
238
  r_title = lod['rss']['channel']['item'][i]['title']
239
  r_description = lod['rss']['channel']['item'][i]['description']"""
240
- lod = {"title":r_title, "description":r_description,"link":r_link}
 
 
241
  except Exception as e:
242
  lod = f'{rss_url} ::ERROR:: {e}'
243
 
 
207
  #lod=""
208
  print (ea['link'])
209
  rss_url=ea['link']
210
+ link_box=[]
211
  r = requests.get(f'{rss_url}')
212
  if r.status_code == 200:
213
  try:
 
238
  r_link = lod['rss']['channel']['item'][i]['link']
239
  r_title = lod['rss']['channel']['item'][i]['title']
240
  r_description = lod['rss']['channel']['item'][i]['description']"""
241
+ lods = {"title":r_title, "description":r_description,"link":r_link}
242
+ link_box.append(lods)
243
+ lod={lod['rss']['channel']['title']:lods}
244
  except Exception as e:
245
  lod = f'{rss_url} ::ERROR:: {e}'
246