annotate 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
rev   line source
paulo@110 1 import datetime
paulo@110 2
paulo@110 3 import myrss_app
paulo@110 4
paulo@110 5
paulo@110 6 feed = open("testfeed.xml").read()
paulo@110 7 filtered_feed = myrss_app._filter_feed(feed)
paulo@110 8 x = myrss_app._process_feed(filtered_feed)
paulo@110 9 y = myrss_app._to_html(datetime.datetime.now(), [x])
paulo@110 10
paulo@110 11 print(y)