jsumners / jsumners/feedparser

Not parsing <sec> tags within <content:encoded> tags

Open
#349 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. Run feedparser on XML feed 
2. Entry contains:
     <content:encoded>
          <sec>
               <title>Something</title>
               <p>Article text here</p>
          </sec>
          <sec>
               <title>Related Title</title>
               <p>Copy of the second entry</p>
               <p>Additional text</p>
          </sec>
     </content:encoded>

3. Feedparser returns 'content' as ' ' 

What is the expected output? What do you see instead?
Would expect to see full content returned in 'content' - instead feedparser 
skips the <sec> tags and returns results as an empty string. 

What version of the product are you using? On what operating system?
Python 2.7.2 on Mac OS X 10.7.3 with feedparser 5.1.1

Please provide any additional information below.

Original issue reported on code.google.com by jason....@willowtreeapps.com on 27 Apr 2012 at 2:40

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

Reproduce the issue with the XML structure shown, using the feedparser entry content path as the starting point. Trace how content:encoded handles nested sec elements and verify that the returned content includes the section text rather than an empty string.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
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.