diff myrss2/myrss_test_feed.py @ 110:1a5c0fc5627a

myrss2: fix gzip and leading whitespace handling; add test feed, test server; update FEEDS
author paulo
date Wed, 03 Jun 2020 01:20:20 -0700
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/myrss2/myrss_test_feed.py	Wed Jun 03 01:20:20 2020 -0700
     1.3 @@ -0,0 +1,11 @@
     1.4 +import datetime
     1.5 +
     1.6 +import myrss_app
     1.7 +
     1.8 +
     1.9 +feed = open("testfeed.xml").read()
    1.10 +filtered_feed = myrss_app._filter_feed(feed)
    1.11 +x = myrss_app._process_feed(filtered_feed)
    1.12 +y = myrss_app._to_html(datetime.datetime.now(), [x])
    1.13 +
    1.14 +print(y)