Giter Site home page Giter Site logo

Parsing custom tags in Item about gofeed HOT 3 OPEN

mmcdole avatar mmcdole commented on May 18, 2024
Parsing custom tags in Item

from gofeed.

Comments (3)

mmcdole avatar mmcdole commented on May 18, 2024

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.

from gofeed.

Nhoya avatar Nhoya commented on May 18, 2024

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

from gofeed.

mmcdole avatar mmcdole commented on May 18, 2024

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.

from gofeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.