extractus / feed-extractor

Simplest way to read & normalize RSS/ATOM/JSON feed data
https://extractor-demos.pages.dev/feed-extractor
MIT License
166 stars 33 forks source link

not working but the sample site is #132

Closed angelxmoreno closed 6 months ago

angelxmoreno commented 6 months ago

This is how i use your code:

import { extract } from '@extractus/feed-extractor';

const sample1 = 'https://podcastfeeds.nbcnews.com/RPWEjhKq';

const parse = async () => {
    return extract(sample1);
}

I've tried 5 different urls and they all throw an error: XML is invalid.

the weird thing is that when I put that same url on https://extractor-demos.pages.dev/feed-extractor it seems to be able to parse just fine. is the demo page running a different version than v7.1.3 ?

ndaidong commented 6 months ago

@angelxmoreno how about your platform, Node.js and feed-extractor version?

Could you try the following steps to see if it works?

git clone https://github.com/extractus/feed-extractor.git
cd feed-extractor
npm install
npm run eval https://podcastfeeds.nbcnews.com/RPWEjhKq

In my machine it ran well:

Screenshot from 2024-05-18 09-17-02

angelxmoreno commented 6 months ago

thanks for the quick reply. Your questions led to me looking in the right place and I had an old version. update to 7.1.3 and all is good!