Mercurial > hg > index.fcgi > www > www-1
diff myrss/myrss_test_feed.py @ 98:e2817e789895
myrss: update FEEDS, and add filter_feed() function to remove bad character from the new feed
author | paulo |
---|---|
date | Wed, 01 Aug 2018 22:33:22 -0700 |
parents | c7bbd3805509 |
children |
line diff
1.1 --- a/myrss/myrss_test_feed.py Mon Jul 09 00:50:35 2018 -0600 1.2 +++ b/myrss/myrss_test_feed.py Wed Aug 01 22:33:22 2018 -0700 1.3 @@ -3,7 +3,9 @@ 1.4 import myrss_app 1.5 1.6 1.7 -x = myrss_app._process_feed(open("yahoo_blogs.rss.xml")) 1.8 +feed = open("testfeed.xml").read() 1.9 +filtered_feed = myrss_app._filter_feed(feed) 1.10 +x = myrss_app._process_feed(filtered_feed) 1.11 y = myrss_app._to_html(datetime.datetime.now(), [x]) 1.12 1.13 print y