Omnibus commited on
Commit
b9b4a1a
·
verified ·
1 Parent(s): 65e7c9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -227,10 +227,11 @@ def find_rss():
227
  try:
228
  print(lod['rss']['channel']['item'][0].keys())
229
  print(lod['rss'].keys())
230
- r_link = lod['rss']['channel']['item'][0]['link']
231
- r_title = lod['rss']['channel']['item'][0]['title']
232
- r_description = lod['rss']['channel']['item'][0]['description']
233
- print({"title":r_title, "description":r_description,"link":r_link})
 
234
  except Exception as e:
235
  print(f'Exception::{e}')
236
  out_box.append(lod)
 
227
  try:
228
  print(lod['rss']['channel']['item'][0].keys())
229
  print(lod['rss'].keys())
230
+ for i,ea in enumerate(lod['rss']['channel']['item']):
231
+ r_link = lod['rss']['channel']['item'][i]['link']
232
+ r_title = lod['rss']['channel']['item'][i]['title']
233
+ r_description = lod['rss']['channel']['item'][i]['description']
234
+ print({"title":r_title, "description":r_description,"link":r_link})
235
  except Exception as e:
236
  print(f'Exception::{e}')
237
  out_box.append(lod)