jsumners / jsumners/feedparser

Only 1 rdf_value and content_item is returned with multiple available in feed

Open
#381 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-migrated
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

What steps will reproduce the problem?
1. The feed: 

http://www.politie.nl/rss/ab/gemeenten/drenthe/aa-en-hunze.xml

2. The lines of code:

import feedparser
d = 
feedparser.parse('http://www.politie.nl/rss/ab/gemeenten/drenthe/aa-en-hunze.xml
')
for entry in d['entries']: print entry

3.

What is the expected output? 

 'content_item': {'rdf:about': u'Alinea'},
 'content_item': {'rdf:about': u'Categorie'},

And also the value of both items

'rdf_value': u'Verkeer',
'rdf_value': u'<text of the content item: Alinea>',

What do you see instead?

Only 1:
'rdf_value': u'Verkeer',
 'content_item': {'rdf:about': u'Categorie'},

What version of the product are you using?
5.1.2

On what operating system?
Tested it on mac os x snow leopard and Ubuntu

Please provide any additional information below.

Original issue reported on code.google.com by dhe...@gmail.com on 10 Nov 2012 at 2:01

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the reported feedparser.parse reproduction against the provided RSS URL and inspecting each entry. Trace how multiple rdf_value and content_item elements are represented; done means both available items and their values are retained in the parsed entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.