gpt4 book ai didi

python - 如何将文件添加到 PyRSS2Gen 的 RSSItem 中?

转载 作者:行者123 更新时间:2023-12-01 06:11:17 26 4
gpt4 key购买 nike

我在我的 GAE 应用程序中使用 PyRSS2Gen。如何将附件添加到 RSSItem?

最佳答案

好的,添加方法如下:

     PyRSS2Gen.RSSItem(
enclosure = PyRSS2Gen.Enclosure(
"http://www.example.com/url",
17176948, # file size
"mime-type"))

关于python - 如何将文件添加到 PyRSS2Gen 的 RSSItem 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5766718/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com