问题标签 [opml]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
90 浏览

c# - 使用 XDocument 提取属性时的空值

该文件是

并通过使用代码从读取的内容中提取属性

但无法读取“htmlUrl”属性值

那么,为什么连价值都在那里,解决方案是什么

编辑:FeedsMainMenuItem 类

公共类 FeedsMainMenuItem {

}

0 投票
1 回答
167 浏览

python - Youtube-dl 订阅 mp3

所以我的目标是编写代码,以便它可以自动从我订阅的所有 Youtube 频道下载到 mp3 文件。我很难处理EO error我不清楚的问题,因此我从来不需要处理它,我已经做过研究,但没有什么可以帮助我,所以这里是代码:

我尝试了新的 YoutubeManager subs.xml ,尝试了其他具有不同频道的 Youtube 帐户,他们的 subs.xml 没有任何帮助。

这是我的错误输出

0 投票
1 回答
7082 浏览

pandas - AttributeError:模块“pandas”没有属性“read_xml”或“to_xml”

我试图将导出的 opml 文件解析成 xml 文件。

我使用 listparser、dicttoxml 和 pandas 成功地做到了这一点。我想尝试使用 pandas read_xml() 和 to_xml() 来了解与我自己将 opml 解析为 xml 相比它的性能如何。

这些将是我得到的错误。

回溯(最后一次调用):文件“”,第 1 行,文件“/home/pysolver33/anaconda3/envs/feedly/lib/python3.9/site-packages/pandas/core/generic.py”,第 5465 行, 在getattr 返回对象。getattribute (self, name) AttributeError: 'DataFrame' 对象没有属性 'read_xml'

回溯(最后一次调用):文件“”,第 1 行,在文件“/home/pysolver33/anaconda3/envs/feedly/lib/python3.9/site-packages/pandas/init .py ”中,第 244 行getattr raise AttributeError(f"module 'pandas' has no attribute '{name}'") AttributeError: module 'pandas' has no attribute 'read_xml'

我的熊猫版本是 1.2.5。我检查了 pip 和 1.2.5 应该是最新版本。我不能玩 read_xml 或 to_xml 有什么特别的原因吗?