Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
|
|
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)
|