Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>That is an <a href="http://en.wikipedia.org/wiki/Atom_(standard)" rel="nofollow noreferrer">Atom feed</a>; use <a href="http://pythonhosted.org/feedparser/" rel="nofollow noreferrer">feedparser</a> to parse that file into individual articles.</p> <pre><code>import feedparser d = feedparser.parse('/path/to/your/xmlfile.xml') for entry in d.entries: print entry.title </code></pre> <p>This prints:</p> <pre><code>模板: R 为此博客设置的发布类型。 此博客管理员的电子邮件列表。 此博客是否包含成人内容 是否允许使用备用的 JS 渲染 博客的 Google Analytics(分析)帐号 存档索引日期格式的编号 此博客的存档频率应该为多少 有权进行发布的作者的电子邮件列表。 是否在博客中显示评论反向链接 是否为每个帖子提供存档页 哪些人能发表评论 是否要求评论者完成 Captcha 用于接收新评论通知的电子邮件地址列表 为博客评论所提供的 Feed 类型 博客评论表位置 博客评论消息 是否启用评论审阅 新评论进行审阅的天数 用于接收需要审阅新评论的通知的电子邮件地址 </code></pre> <p>etc.</p> <p>You can see what items each entry defines by looking at the result of the <code>.keys()</code> method:</p> <pre><code>&gt;&gt;&gt; d.entries[0].keys() ['updated', u'gd_image', 'updated_parsed', 'published_parsed', 'tags', 'title', 'links', 'summary', 'content', 'guidislink', 'title_detail', 'link', 'author', 'published', 'authors', 'author_detail', 'id'] </code></pre> <p>If you want to convert your HTML content to text, there are a few options. Most are listed in: <a href="https://stackoverflow.com/questions/328356/extracting-text-from-html-file-using-python">Extracting text from HTML file using Python</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload