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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -225,10 +225,11 @@ def find_rss():
225
  lod = f'{rss_url} ::ERROR::COULD NOT CONNECT:: {r.status_code}'
226
  pass
227
  try:
228
- print(lod['rss']['channel'].keys())
229
- r_link = lod['rss']['channel']['link']
230
- r_title = lod['rss']['channel']['title']
231
- r_description = lod['rss']['channel']['description']
 
232
  print({"title":r_title, "description":r_description,"link":r_link})
233
  except Exception as e:
234
  print(f'Exception::{e}')
 
225
  lod = f'{rss_url} ::ERROR::COULD NOT CONNECT:: {r.status_code}'
226
  pass
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}')