danmactough / node-feedparser

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

Forbes feed doesn't work? #149

Closed markudevelop closed 8 years ago

markudevelop commented 8 years ago

http://www.forbes.com/real-time/feed2/ when I try to parse this feed it will output the following error: { [Error: Not a feed] stack: [Getter] }

Visiting the link seems like a valid RSS link + works on other website to parse it.

danmactough commented 8 years ago

@voidale Can you please post your code or relevant part of it? I am able to parse that feed just fine.

One likely suspect is that you're piping the http response directly to feedparser when the response is actually gzipped -- for example.

markudevelop commented 8 years ago

@danmactough yeah I think you're right how can I overcome this? I didn't expect it thanks! here is my code: http://pastebin.com/PkcMsH0q

danmactough commented 8 years ago

Check out the examples directory

markudevelop commented 8 years ago

@danmactough awesome thanks sorry I missed this one, Didn't know it's important

markudevelop commented 8 years ago

just a small update it seems to work and there is no zlib, I fetched the url without www. and forbes doesn't allow that.. there is no RSS without www. >.<