开发者

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"))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜