Note that there are some explanatory texts on larger screens.

plurals
  1. POaccessing comments using feedparser
    primarykey
    data
    text
    <p>I have a Google app engine application and I'm trying to use feedparser to access a comment on the feed. I'm testing with a feed from Google blogger example</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?&gt; &lt;feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/"CUYMQ348fyp7ImA9WB9UFkU."'&gt; &lt;id&gt;tag:blogger.com,1999:blog-blogID.postpostID..comments&lt;/id&gt; &lt;updated&gt;2007-12-14T17:46:22.077-08:00&lt;/updated&gt; &lt;title&gt;Comments on Lizzy's Diary: Quite disagreeable&lt;/title&gt; &lt;entry gd:etag='W/"CUYCQX47eSp7ImA9WB9UFkU."'&gt; &lt;id&gt;tag:blogger.com,1999:blog-blogID.post-commentID&lt;/id&gt; &lt;published&gt;2007-12-14T17:46:00.001-08:00&lt;/published&gt; &lt;thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blogName.blogspot.com/2007/12/quite-disagreeable_5283.html' ref='tag:blogger.com,1999:blog-blogID.post-postID' source='http://www.blogger.com/feeds/blogID/posts/default/postID' type='text/html' /&gt; &lt;/entry&gt; </code></pre> <p>Currently, my code has</p> <pre><code>d= feedparser.parse(feedurl) for child in d.entries: _url = child.thr_in-reply-to.href </code></pre> <p>I get the error message</p> <pre><code>raise AttributeError, &amp;quot;object has no attribute '%s'&amp;quot; % key AttributeError: object has no attribute 'thr_in' </code></pre> <p>How can I access the comments and any of its attributes?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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