Codebase list feedparser / f1faf8e
Update upstream source from tag 'upstream/6.0.10' Update to upstream version '6.0.10' with Debian dir 5e1c74698ac82d5d476e5c002b81ee0c2d0c620f Nicholas D Steeves 1 year, 4 months ago
41 changed file(s) with 83 addition(s) and 49 deletion(s). Raw diff Collapse all Expand all
11
22 ----- begin license block -----
33
4 Copyright (C) 2010-2021 Kurt McKee <contactme@kurtmckee.org>
4 Copyright (C) 2010-2022 Kurt McKee <contactme@kurtmckee.org>
55 Copyright (C) 2002-2008 Mark Pilgrim
66 All rights reserved.
77
3737
3838 ----- begin license block -----
3939
40 Copyright (C) 2010-2021 Kurt McKee <contactme@kurtmckee.org>
40 Copyright (C) 2010-2022 Kurt McKee <contactme@kurtmckee.org>
4141 Copyright (C) 2004-2008 Mark Pilgrim. All rights reserved.
4242
4343 Redistribution and use in source (Sphinx ReST) and "compiled" forms (HTML, PDF,
00 coming in the next release:
1
2 6.0.10 - 21 May 2022
3 * Populate ``<summary>`` correctly if it comes after ``<content>``. (#260)
4
5 6.0.9 - 19 May 2022
6 * Fix a crash that can occur with GeoRSS feeds that lack a ``<where>`` tag. (#305)
17
28 6.0.8 - 22 June 2021
39 * Fix the name and link to the chardet module in the documentation. (#280)
00 Metadata-Version: 2.1
11 Name: feedparser
2 Version: 6.0.8
2 Version: 6.0.10
33 Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
44 Home-page: https://github.com/kurtmckee/feedparser
5 Download-URL: https://pypi.python.org/pypi/feedparser
56 Author: Kurt McKee
67 Author-email: contactme@kurtmckee.org
78 License: BSD-2-Clause
8 Download-URL: https://pypi.python.org/pypi/feedparser
99 Keywords: atom,cdf,feed,parser,rdf,rss
1010 Platform: POSIX
1111 Platform: Windows
2626
2727 feedparser - Parse Atom and RSS feeds in Python.
2828
29 | Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
29 | Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
3030 | Copyright 2002-2008 Mark Pilgrim
3131
3232 feedparser is open source. See the LICENSE file for more information.
7777
7878 This will spawn an HTTP server that will listen on port 8097. The tests will
7979 fail if that port is in use.
80
81
00 feedparser - Parse Atom and RSS feeds in Python.
11
2 | Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
2 | Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
33 | Copyright 2002-2008 Mark Pilgrim
44
55 feedparser is open source. See the LICENSE file for more information.
1010
1111 # project information
1212 project = 'feedparser'
13 copyright = '2010-2021 Kurt McKee, 2004-2008 Mark Pilgrim'
13 copyright = '2010-2022 Kurt McKee, 2004-2008 Mark Pilgrim'
1414 language = 'en'
1515
1616 # documentation options
22 Documentation license
33 =====================
44
5 Copyright 2010-2021 Kurt McKee, 2004-2008 Mark Pilgrim. All rights reserved.
5 Copyright 2010-2022 Kurt McKee, 2004-2008 Mark Pilgrim. All rights reserved.
66
77 Redistribution and use in source (Sphinx ReST) and "compiled" forms (HTML, PDF,
88 PostScript, RTF and so forth) with or without modification, are permitted
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
3131
3232 __author__ = 'Kurt McKee <contactme@kurtmckee.org>'
3333 __license__ = 'BSD 2-clause'
34 __version__ = '6.0.8'
34 __version__ = '6.0.10'
3535
3636 # HTTP "User-Agent" header to send to servers when downloading feeds.
3737 # If you are embedding feedparser in a larger application, you should
00 # The public API for feedparser
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
00 # Character encoding routines
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # Exceptions used throughout feedparser
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
192192 self.svgOK = 0
193193 self.title_depth = -1
194194 self.depth = 0
195 self.hasContent = 0
195196 if self.lang:
196197 self.feeddata['language'] = self.lang.replace('_', '-')
197198
00 # Support for the Atom, RSS, RDF, and CDF feed formats
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
258258 def _end_item(self):
259259 self.pop('item')
260260 self.inentry = 0
261 self.hasContent = 0
261262 _end_entry = _end_item
262263
263264 def _start_language(self, attrs_d):
387388
388389 def _start_description(self, attrs_d):
389390 context = self._get_context()
390 if 'summary' in context:
391 if 'summary' in context and not self.hasContent:
391392 self._summaryKey = 'content'
392393 self._start_content(attrs_d)
393394 else:
428429
429430 def _start_summary(self, attrs_d):
430431 context = self._get_context()
431 if 'summary' in context:
432 if 'summary' in context and not self.hasContent:
432433 self._summaryKey = 'content'
433434 self._start_content(attrs_d)
434435 else:
465466 self.sourcedata.clear()
466467
467468 def _start_content(self, attrs_d):
469 self.hasContent = 1
468470 self.push_content('content', attrs_d, 'text/plain', 1)
469471 src = attrs_d.get('src')
470472 if src:
476478 _start_xhtml_body = _start_body
477479
478480 def _start_content_encoded(self, attrs_d):
481 self.hasContent = 1
479482 self.push_content('content', attrs_d, 'text/html', 1)
480483 _start_fullitem = _start_content_encoded
481484
00 # Support for the administrative elements extension
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # Support for the Creative Commons licensing extensions
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # Support for the Dublin Core metadata extensions
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # Support for the GeoRSS format
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
9090 except ValueError:
9191 srs_dimension = 2
9292 context = self._get_context()
93 if 'where' not in context:
94 context['where'] = {}
9395 context['where']['srsName'] = srs_name
9496 context['where']['srsDimension'] = srs_dimension
9597
00 # Support for the iTunes format
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # Support for the Media RSS format
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # Support for the Podlove Simple Chapters format
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # The loose feed parser that interfaces with an SGML parsing library
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
00 # The strict feed parser that interfaces with an XML parsing library
1 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
1 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
22 # Copyright 2002-2008 Mark Pilgrim
33 # All rights reserved.
44 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
00 Metadata-Version: 2.1
11 Name: feedparser
2 Version: 6.0.8
2 Version: 6.0.10
33 Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
44 Home-page: https://github.com/kurtmckee/feedparser
5 Download-URL: https://pypi.python.org/pypi/feedparser
56 Author: Kurt McKee
67 Author-email: contactme@kurtmckee.org
78 License: BSD-2-Clause
8 Download-URL: https://pypi.python.org/pypi/feedparser
99 Keywords: atom,cdf,feed,parser,rdf,rss
1010 Platform: POSIX
1111 Platform: Windows
2626
2727 feedparser - Parse Atom and RSS feeds in Python.
2828
29 | Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
29 | Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
3030 | Copyright 2002-2008 Mark Pilgrim
3131
3232 feedparser is open source. See the LICENSE file for more information.
7777
7878 This will spawn an HTTP server that will listen on port 8097. The tests will
7979 fail if that port is in use.
80
81
668668 tests/illformed/chardet/windows1255.xml
669669 tests/illformed/geo/georss_point_no_coords.xml
670670 tests/illformed/geo/georss_polygon_insufficient_coords.xml
671 tests/illformed/geo/gml_point.xml
671672 tests/wellformed/amp/amp01.xml
672673 tests/wellformed/amp/amp02.xml
673674 tests/wellformed/amp/amp03.xml
910911 tests/wellformed/atom10/entry_category_scheme.xml
911912 tests/wellformed/atom10/entry_category_term.xml
912913 tests/wellformed/atom10/entry_category_term_non_ascii.xml
914 tests/wellformed/atom10/entry_content_and_summary.xml
913915 tests/wellformed/atom10/entry_content_application_xml.xml
914916 tests/wellformed/atom10/entry_content_base64.xml
915917 tests/wellformed/atom10/entry_content_base64_2.xml
0 # Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
0 # Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
11 # Copyright 2002-2008 Mark Pilgrim
22 # All rights reserved.
33 #
0 <!--
1 Description: item point where
2 Expect: entries[0]['where']['type'] == 'Point' and entries[0]['where']['coordinates'] == (31.1732, 36.9382)
3 -->
4 <feed
5 xmlns="http://www.w3.org/2005/Atom"
6 xmlns:gml="http://www.opengis.net/gml"
7 >
8 <entry>
9 <gml:Point>
10 <gml:pos>36.9382 31.1732</gml:pos>
11 </gml:Point>
12 </entry>
13 </feed>
0 <!--
1 Description: entry summary follows content with different value
2 Expect: not bozo and entries[0]['summary'] == 'Summary'
3 -->
4 <feed xmlns="http://www.w3.org/2005/Atom">
5 <entry>
6 <content>Example Atom</content>
7 <summary>Summary</summary>
8 </entry>
9 </feed>