jsumners / jsumners/feedparser

Content inside HTML-escaped CDATA Ignored

Open
#413 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. Try and parse the attached RSS sample.

   >>> d = feedparser.parse('bushfireAlert.xml')

2. The item description only contains "MORE!", all the other content is missing.

    >>> d['entries'][0]['description']
    u'MORE!'


What is the expected output? What do you see instead?

Expect:

Alert Level: Advice.<br />Location: Herberton Petford Rd, 
Irvinebank.<br />Reported: 12/09/2013 1:17:49 PM.<br />Current 
Status: Going.<br />Details: A fire or other emergency has started in the 
area however there is no immediate threat. MORE!

Result:

MORE!

What version of the product are you using? On what operating system?

5.1.3, Mac OSX 10.8, Python 2.7.2.

Please provide any additional information below.

This sample it taken from the feed:

http://www.ruralfire.qld.gov.au/bushfirealert/bushfireAlert.xml

Original issue reported on code.google.com by everbl...@gmail.com on 18 Sep 2013 at 2:44

Attachments:

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 feedparser.parse on the attached bushfireAlert.xml and inspect the first entry's description. Trace how the HTML-escaped CDATA content is handled and compare the result with the expected full alert text in the report. Done means the description retains the alert details instead of returning only "MORE!".

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.