annotate myrss/myrss_test_feed.py @ 74:d6acf8b093b7

myrss: update user-agent string to "Mozilla/5.0" to fix servers that insist on one
author paulo
date Wed, 27 Jan 2016 01:50:15 -0700
parents 315afeb47e52
children e2817e789895
rev   line source
paulo@47 1 import datetime
paulo@47 2
paulo@47 3 import myrss_app
paulo@47 4
paulo@47 5
paulo@72 6 x = myrss_app._process_feed(open("yahoo_blogs.rss.xml"))
paulo@47 7 y = myrss_app._to_html(datetime.datetime.now(), [x])
paulo@47 8
paulo@47 9 print y