We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems like a feedparser issue: kurtmckee/feedparser#59
Repro:
import reader, io, feedparser feed_bytes = b"""\ <?xml version='1.0' encoding='UTF-8'?> <feed xmlns="http://www.w3.org/2005/Atom"> <entry> <id>one</id> <summary>summary-one</summary> <content type="html">content-one</content> </entry> <entry> <id>two</id> <content type="html">content-two</content> <summary>summary-two</summary> </entry> </feed> """ parser = reader._parser.default_parser().get_parser_by_mime_type('application/atom+xml') feed, entries = parser('url', io.BytesIO(feed_bytes)) for entry in entries: print(entry.id) print(' ', 'summary', entry.summary) print(' ', 'content') for content in entry.content: print(' ', content) print() for entry in feedparser.parse(io.BytesIO(feed_bytes)).entries: print(entry.id) print(' ', 'summary', entry.summary) print(' ', 'content') for content in entry.content: print(' ', content)
Output:
one summary summary-one content Content(value='content-one', type='text/html', language=None) two summary content-two content Content(value='content-two', type='text/html', language=None) Content(value='summary-two', type='text/plain', language=None) one summary summary-one content {'type': 'text/html', 'language': None, 'base': '', 'value': 'content-one'} two summary content-two content {'type': 'text/html', 'language': None, 'base': '', 'value': 'content-two'} {'type': 'text/plain', 'language': None, 'base': '', 'value': 'summary-two'}
The text was updated successfully, but these errors were encountered:
Also see kurtmckee/feedparser#412
Note it may be fixed in feedparser develop (need to test).
Sorry, something went wrong.
No branches or pull requests
Seems like a feedparser issue: kurtmckee/feedparser#59
Repro:
Output:
The text was updated successfully, but these errors were encountered: