Note that there are some explanatory texts on larger screens.

plurals
  1. POfeedparser, missing entry values
    primarykey
    data
    text
    <p>I am trying to parse the following RSS feed from NOAA: <a href="http://www.nhc.noaa.gov/rss_examples/gis-ep-20130530.xml" rel="nofollow">http://www.nhc.noaa.gov/rss_examples/gis-ep-20130530.xml</a></p> <p>It works great except for this section:</p> <pre><code> &lt;item&gt; &lt;title&gt;Summary - Remnants of BARBARA (EP2/EP022013)&lt;/title&gt; &lt;guid isPermaLink="false"&gt;summary-ep022013-201305302032&lt;/guid&gt; &lt;pubDate&gt;Thu, 30 May 2013 20:32:00 GMT&lt;/pubDate&gt; &lt;author&gt;nhcwebmaster@noaa.gov (NHC Webmaster)&lt;/author&gt; &lt;link&gt; http://www.nhc.noaa.gov/text/refresh/MIATCPEP2+shtml/302031.shtml &lt;/link&gt; &lt;description&gt; ...BARBARA DISSIPATES... ...THIS IS THE LAST ADVISORY... As of 2:00 PM PDT Thu May 30 the center of BARBARA was located at 18.5, -94.5 with movement NNW at 3 mph. The minimum central pressure was 1005 mb with maximum sustained winds of about 25 mph. &lt;/description&gt; &lt;gml:Point&gt; &lt;gml:pos&gt;18.5 -94.5&lt;/gml:pos&gt; &lt;/gml:Point&gt; **&lt;nhc:Cyclone&gt; &lt;nhc:center&gt;18.5, -94.5&lt;/nhc:center&gt; &lt;nhc:type&gt;REMNANTS OF&lt;/nhc:type&gt; &lt;nhc:name&gt;BARBARA&lt;/nhc:name&gt; &lt;nhc:wallet&gt;EP2&lt;/nhc:wallet&gt; &lt;nhc:atcf&gt;EP022013&lt;/nhc:atcf&gt; &lt;nhc:datetime&gt;2:00 PM PDT Thu May 30&lt;/nhc:datetime&gt; &lt;nhc:movement&gt;NNW at 3 mph&lt;/nhc:movement&gt; &lt;nhc:pressure&gt;1005 mb&lt;/nhc:pressure&gt; &lt;nhc:wind&gt;25 mph&lt;/nhc:wind&gt; &lt;nhc:headline&gt; ...BARBARA DISSIPATES... ...THIS IS THE LAST ADVISORY... &lt;/nhc:headline&gt; &lt;/nhc:Cyclone&gt;** &lt;/item&gt; </code></pre> <p>The section in BOLD is not being parsed by feedparser. Is there a way to ensure custom tags are included in the parsing?</p> <p>Verification:</p> <pre><code>&gt;&gt;&gt; import feedparser &gt;&gt;&gt; f = feedparser.parse('http://www.nhc.noaa.gov/rss_examples/gis-ep-20130530.xml') &gt;&gt;&gt; f.entries[1]['description'] u'Shapefile last updated Thu, 30 May 2013 15:03:01 GMT' &gt;&gt;&gt; f.entries[1]['nhc_cyclone'] Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "feedparser.py", line 375, in __getitem__ return dict.__getitem__(self, key) KeyError: 'nhc_cyclone' </code></pre> <p>Output of <code>&gt;&gt;&gt; f</code>: <a href="https://gist.github.com/mustafa0x/6199452" rel="nofollow">https://gist.github.com/mustafa0x/6199452</a></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.
 

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