New issue
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
should entry.tags be defined even when empty? #319
Comments
JoeGermuska
changed the title
Mixed results using
entry.tags should be defined even when empty
Jul 13, 2022
entry.tags
with similar feeds
JoeGermuska
changed the title
entry.tags should be defined even when empty
entry.tags should be defined even when empty?
Jul 13, 2022
JoeGermuska
changed the title
entry.tags should be defined even when empty?
should entry.tags be defined even when empty?
Jul 13, 2022
My bad... I didn't read the feed XML carefully, and it just so happened that the first element in the NYT feed didn't have categories. So I guess I was surprised that the parsed feed entry throws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have two different RSS feeds, both of which have a number of elements at the xpath
/rss/channel/item/category
, which, according to the docs, is one source for tags (categories) on elements.However, when feedparser parses them, entries from one have tags, and entries from the other do not.
This feed,
https://seekingalpha.com/feed.xml
, comes up with plentiful tags, even though the RSS does not validateThis feed,
https://rss.nytimes.com/services/xml/rss/nyt/World.xml
, throwsAttributeError
whenentry.tags
is accessed, even though the RSS does validate.Am I missing something? Is it a bug?
The text was updated successfully, but these errors were encountered: