danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 190 forks source link

<link type="application/rss+xml"> was not parsed #272

Closed slavaGanzin closed 5 years ago

slavaGanzin commented 5 years ago

Hello, thanks for your project.

I found that feedparser return empty feedUrls if I run:

var rssFinder = require('rss-finder');

rssFinder('https://outsideonline.com').then(function(res) {
    console.log(res);
}).catch(function(err) {
    console.log(err);
});

Result:

{ site: 
   { title: 'Pinterest Icon',
     favicon: 'https://www.outsideonline.com/sites/default/files/favicon_1.ico',
     url: 'https://www.outsideonline.com' },
  feedUrls: [] }

But this page has valid rss feed link in head section:

<link rel="alternate" type="application/rss+xml" title="Semi-Rad" href="https://www.outsideonline.com/taxonomy/term/10311/%2A/feed">

Can you guide me through this issue?

feedparser 2.2.9 node: v9.4.0

danmactough commented 5 years ago

@slavaGanzin I think you should open an issue with rss-finder. This seems like something for them to debug -- feedparser isn't used to populate that feedUrls array.

slavaGanzin commented 5 years ago

@danmactough Sorry. My fault: mistook open windows :)

danmactough commented 5 years ago

No worries at all @slavaGanzin. Take in easy!