How to add file to RSSItem of PyRSS2Gen?
I use PyRSS2Gen in my GAE application.开发者_高级运维 How can I add attached file to the RSSItem?
Ok, here is the way to add it:
PyRSS2Gen.RSSItem(
enclosure = PyRSS2Gen.Enclosure(
"http://www.example.com/url",
17176948, # file size
"mime-type"))
精彩评论