我正在学习如何正确解析xml和rss提要,遇到了一个小问题。我在python中使用feedbarser来解析RSS提要中的特定条目,但是我不知道如何解析content部分中的一个img src。在
以下是我目前所掌握的情况。在
import dirFeedparser.feedparser as feedparser
feedurl = feedparser.parse('http://dustinheroin.chompblog.com/index.php?cat=22&feed=rss2')
statusupdate = feedurl.entries[0].content
print statusupdate
现在,当我打印内容时,我得到的是:
^{pr2}$从中获得IMG-SRC的最佳方法是什么?谢谢帮忙!在
也许下面的内容会给你一些想法
以下是SHG的建议:
但是如果你真的需要一个非静态变量
有关静态和非静态字段的详细信息,请查看Oracle documentation(基本上,您将需要或不需要
MyClass
实例来获得myarray
访问权限,但您将能够或不能够在JVM中拥有不同的列表)相关问题 更多 >
编程相关推荐