view myrss/myrss_test_feed.py @ 88:583400dc28a0

myrss: update user-agent string to "Mozilla/5.0 Browser" after some servers complain about "Mozilla/5.0"; show exception type in top-level exception handler log message
author paulo
date Thu, 12 Jan 2017 00:59:05 -0700
parents 315afeb47e52
children e2817e789895
line source
1 import datetime
3 import myrss_app
6 x = myrss_app._process_feed(open("yahoo_blogs.rss.xml"))
7 y = myrss_app._to_html(datetime.datetime.now(), [x])
9 print y