danmactough / node-feedparser

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

How do I know if a feed is parsed successfully? #185

Closed aniskhan001 closed 6 years ago

aniskhan001 commented 7 years ago

Currently, I can get to know that if a feed is parsed by the readable() method. But that loops multiple time (total article count on that feed). I want to know that with a single method. Is that possible?

oazya500 commented 7 years ago

there is

feedparser.on('end', function(error) {

});

but is it work fine . me to want to parse all feed then insert items to DB to decrease the cost to insertion time

zeeshanjan82 commented 7 years ago

end event is not working fine. It is fired before.

danmactough commented 6 years ago

Here's a great demo if you're still looking for guidance.