libo26 / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

RSS 2.0 feed with Atom namespace incorrectly identified as 'atom10' #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Parse a feed from Delicious.com.  These are (as of August 2008) RSS 2.0
feeds which happen to include the Atom namespace, among others.
2. Look at version.  The value will be 'atom10'.

What is the expected output? What do you see instead?
Expected: 'rss20'
Actual: 'atom10'

What version of the product are you using? On what operating system?
Feed Parser 4.1, Python 2.4.4

Example repro steps:

Python 2.4.4 (#2, Apr 29 2008, 08:45:14)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import feedparser
>>> url = 'http://feeds.delicious.com/v2/rss/wearehugh'
>>> d = feedparser.parse(url)
>>> d.version
'atom10'

Here's what the top-level 'rss' element of that feed looks like:

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/">

Note the Atom namespace.  As far as I can tell, they're using the Atom
namespace so they can include a <link rel="self"> with the feed's URL.

Original issue reported on code.google.com by jac...@gmail.com on 4 Aug 2008 at 9:05

GoogleCodeExporter commented 9 years ago
This is a duplicate of issue #85.

Original comment by jac...@gmail.com on 5 Aug 2008 at 4:20

GoogleCodeExporter commented 9 years ago

Original comment by adewale on 25 Dec 2009 at 4:45