Giter Club home page Giter Club logo

Comments (5)

JulianWebb avatar JulianWebb commented on May 28, 2024 1

If I enable normalization though, I lose data from the item's fields because it gets stripped.

I understand that the names are different, I just think it makes sense to expand the documentation around the normalization option to inform people of this.

from feed-extractor.

ndaidong avatar ndaidong commented on May 28, 2024

@JulianWebb thank you. When you don't use normalization, this lib will keep the structure as it is. That's is expected behaviour.

In real world, it's more complicate than you said, here is what I known:

  • RSS uses tag name item, ATOM uses tag name entry
  • item and entry can be an array or single object (when there is only one item)
  • JSONFeed uses items. Despite the fact that it's plural, it can be single object too!

So I recommend to enable normalization option if you need something more consistent.

from feed-extractor.

ndaidong avatar ndaidong commented on May 28, 2024

@JulianWebb I agree that it is better to described more clear. The documentation is quite sketchy, not fully telling the capabilities of this library 🔔

Note that 2 methods getExtraFeedFields and getExtraEntryFields can help you get any data from feeds when you need, similar to #66

from feed-extractor.

JulianWebb avatar JulianWebb commented on May 28, 2024

Do those methods stop the normalization from stripping HTML and CDATA?

from feed-extractor.

ndaidong avatar ndaidong commented on May 28, 2024

@JulianWebb no, they don't stop normalizing, but allow to choose which content you want to pick from the original data and how you customize these pieces.

from feed-extractor.

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.