Skip to content
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

Access to arbitrary elements. #24

Open
bigblind opened this issue May 28, 2015 · 3 comments
Open

Access to arbitrary elements. #24

bigblind opened this issue May 28, 2015 · 3 comments
Assignees

Comments

@bigblind
Copy link

I'm specifically looking to access the itunes:owner element of a podcast feed, but I think that access to arbitrary non-standard elements would be useful.

@mmcdole
Copy link

mmcdole commented Sep 12, 2015

@kurtmckee is it possible to do this?

For example, I'm writing a podcast app. I would prefer to have itunes:author take precedence over any of the other feed.author elements. I'd like to be able to access all the original raw elements with something like:
feed['itunes:author'] or similar.

I see under the namespaces documentation, you should be able to access it with something like:
feed.itunes_author, however, it looks like because you have mapped some of the extension properties to core properties, not all of them work?

I would think it would be better to duplicate this item and have it available via the mapped core element, and the original extension element.

@kurtmckee
Copy link
Owner

@bigblind, @mmcdole, thanks for the feedback! You're both right, this is something that needs to be addressed. People need access to custom elements and attributes, some need the information to map to core elements (like dcterms:issued to published), others require it to be separate...so I'm thinking about how to handle these requirements. I'll update this ticket when code lands in the develop branch, and I'm open to suggestions that don't involve turning feedparser into a generic XML DOM parser. =)

@kurtmckee kurtmckee self-assigned this Feb 29, 2016
@gaodeng
Copy link

gaodeng commented Jan 2, 2020

any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants