by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 08 22:50
    q7nQiXMU7c opened #282
  • May 02 02:26

    danmactough on master

    2.2.10 (compare)

  • May 02 02:26

    danmactough on v2.2.10

    2.2.10 (compare)

  • May 02 02:21

    danmactough on update-deps

    (compare)

  • May 02 02:21

    danmactough on master

    Update travis config; drop supp… Replace iconv with iconv-lite Update eslint v6 and 7 more (compare)

  • May 02 02:21
    danmactough closed #281
  • May 02 02:21
    danmactough closed #280
  • May 02 02:18

    danmactough on update-to-node-10

    (compare)

  • May 02 02:18

    danmactough on eslint-5.0.0

    (compare)

  • May 02 02:18

    danmactough on readable-stream-3.0.1

    (compare)

  • May 02 02:18

    danmactough on eslint-5.0.1

    (compare)

  • May 02 02:18

    danmactough on readable-stream-3.0.0

    (compare)

  • May 02 02:18

    danmactough on readable-stream-3.0.2

    (compare)

  • May 02 02:18

    danmactough on readable-stream-3.0.3

    (compare)

  • May 02 02:17

    danmactough on readable-stream-3.0.4

    (compare)

  • May 02 02:17

    danmactough on readable-stream-3.0.5

    (compare)

  • May 02 02:17

    danmactough on readable-stream-3.0.6

    (compare)

  • May 02 02:17

    danmactough on readable-stream-3.1.0

    (compare)

  • May 02 02:17

    danmactough on readable-stream-3.1.1

    (compare)

  • May 02 02:17

    danmactough on eslint-5.12.1

    (compare)

yPhil
@yassinphilip_twitter
What I'd like to know though, is how to set the user agent used by requestbecause once in a while, an HTML page is returned
yPhil
@yassinphilip_twitter
Does anybody manage to read this feed with feedparser? https://www.blendernation.com/feed/
r00tz
@razor950
@danmactough thank you for this module
that's all I came here to say :)
Dan MacTough
@danmactough
Thanks for the kindness @razor950!
r00tz
@razor950
its such a fantastic module
using it to feed a news tab in my application ;)
Dan MacTough
@danmactough
👍
praveen poojary
@praveenpoojary1_twitter
Hello Dan
For this rss feed I am getting date field as Invalid date
praveen poojary
@praveenpoojary1_twitter
I can see that for this url date is not right format also
Saturday,January 27,2018 16:36 pm
Can you suggest any workaround for this?
farnazj
@farnazj
Hi! I'm trying to build and return an array of articles (same as @douglas-b-clark ) so I listen on the 'end' signal but it never fires (the 'readable ' signal fires fine). Any suggestions?
Thomas Lee
@tleef

I keep getting a Not a feed error trying to parse google news' rss feed
https://news.google.com/news/rss/search/section/q/tesla/tesla?ned=us&gl=US&hl=en

I'm using axios

basic setup is

const res = await axios.get(params.url)
const feedparser = new FeedParser()
// define error and readable handlers for feedparser
res.data.pipe(feedparser)

Also, the error is not being passed to the on error handler which is weird

@farnazj Im not too familiar with feedparser, just started using it but they seem to have a stream property on the FeedParser instance.

You could try

const fp = new FeedParser()
fp.stream.on('end', () => {
  // blah
})
farnazj
@farnazj
@tleef Ah I see that helped! thanks!
Thomas Lee
@tleef
Cool, np
Any idea about my Not a feed error haha?
Thomas Lee
@tleef

I still get the error on the example rss 2.0 file linked on w3.org

https://validator.w3.org/feed/docs/rss2.html#sampleFiles

Thomas Lee
@tleef
LOL. Turns out node-feedparser is not the correct module. Works much better when you use feedparser haha.
Aliyss Snow
@Aliyss
huh
Aliyss Snow
@Aliyss
@tleef I've been searching for the exact same thing as farnazj. Thanks a lot you saved my month. Have been working on this one problem for some time now. Real life-saver.
Jon Jelinski
@Kezzo
Is there a good solution for rss feeds that have meta information below all items? This is for example used in this one:
https://feed.pippa.io/public/shows/clublife-by-tiesto
As you can observe the <itunes:category> tag is at the end. When using feedparser it's not part of the meta object or in any of the article objects.
Dan MacTough
@danmactough
@Kezzo could you open an issue with a little more info (like how you're parsing the feeds, what you expect to happen that isn't happening)?
Jon Jelinski
@Kezzo
@danmactough Alright, will do! :)
Jon Jelinski
@Kezzo
Done: danmactough/node-feedparser#262
Dan MacTough
@danmactough
Thanks!
Eduard Pochtar
@iamfrntdv
Hi there!
I have tested node-feedparser on https://css-tricks.com/feed/ and it throughs an error not a feed
and the weird part is that when I tried some other parsers or rss everything works just fine..
can any one help to find out what can be the problem?
Dan MacTough
@danmactough

@iamfrntdv Hard to know for sure what is the problem, but sometimes a feed will be served compressed and you need to handle that - https://github.com/danmactough/node-feedparser/blob/master/examples/compressed.js. Also, some servers will serve HTML instead of a feed if they can't tell from your request headers that you want a feed: https://github.com/danmactough/node-feedparser/blob/master/examples/compressed.js#L11-L12

Hope that helps.

Eduard Pochtar
@iamfrntdv
@danmactough setting headers helped! thanks a lot for your help!
Eduard Pochtar
@iamfrntdv
By the way this project was built with the help of your great tool - https://asterisk.news )
Dan MacTough
@danmactough
Wow! That looks really cool! @iamfrntdv!!
Eduard Pochtar
@iamfrntdv
@danmactough thanks)
Is there something I might be missing?
Shriram Balaji
@Shriram-Balaji
Hey! Is there a way to parse older feeds using
Feedparser? This article specifies of how podcast publishers should implement that - https://podlove.org/paged-feeds/ . I'm not really sure of how to look up next / prev pages from the parsed content. I'm not sure what I'm missing, would be great if someone could help out? Thanks!
Ankur Singh
@skur42
How to add an array of rss urls to get feed
Anyone??
Ankur Singh
@skur42
??
can someone please help me?
Ankur Singh
@skur42
not getting any images also
Sayem Chowdhury
@sayem314
Is this still maintained? Or should I stick with rss-parser?
trungtq-0433
@trungtq-0433
I am looking for a similar node-parser library in Ruby.
Can you give me a few suggestions?