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

Parsing custom tags in Item #82

Open
Nhoya opened this issue Oct 16, 2017 · 3 comments
Open

Parsing custom tags in Item #82

Nhoya opened this issue Oct 16, 2017 · 3 comments

Comments

@Nhoya
Copy link

Nhoya commented Oct 16, 2017

Hi,
i'm trying to parse this feed https://ctftime.org/event/list/upcoming/rss/
As you can see each item has tags like weight but i can't find a way to parse them, looking at the doc i can't find anything about that

@mmcdole
Copy link
Owner

mmcdole commented Oct 16, 2017

Unfortunately, this is considered an invalid feed per the spec:

RSS 2.0 adds that capability, following a simple rule. A RSS feed may contain elements not described on this page, only if those elements are defined in a namespace.

No namespace is specified on these elements. If there was a namespace specified, these items would be present in the feed.Extensions map.

I'm not sure what I could do to to handle these invalid feeds. Perhaps try and dump them into a special entry in the Extensions map, but I'm not sure.

@Nhoya
Copy link
Author

Nhoya commented Oct 16, 2017

In python i can handle this feed using https://github.com/kurtmckee/feedparser maybe you can follow the same idea

@mmcdole
Copy link
Owner

mmcdole commented Oct 17, 2017

Let me take a look at what feedparser is doing for this case. Python's dynamic nature may be helping them.

So far, the only thing I can think of is adding these items to a special entry in the extension map.

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

2 participants