Filtering RSS Feeds

Hi there,
I try to read an RSS Feed with the node-red-node-Feedparser. This node always brings the whole Feed with 50 something Entrys. How can I just Filter the most recent entry (1 oder 10 Items)?

Sorry, for this very noobish question. I just started.

BR

1 Like

This example returns 10 elements, not using feedparser, but just http request node and change node

[{"id":"b766631d.f968f","type":"inject","z":"ad78cee0.37199","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":408,"wires":[["12a221bb.ad136e"]]},{"id":"79f23a35.f89e3c","type":"debug","z":"ad78cee0.37199","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":794,"y":408,"wires":[]},{"id":"12a221bb.ad136e","type":"http request","z":"ad78cee0.37199","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://www.nu.nl/rss","tls":"","persist":false,"proxy":"","authType":"","x":334,"y":408,"wires":[["909dd1c1.213b88"]]},{"id":"909dd1c1.213b88","type":"xml","z":"ad78cee0.37199","name":"","property":"payload","attr":"","chr":"","x":482,"y":408,"wires":[["29971ab9.2f1666"]]},{"id":"29971ab9.2f1666","type":"change","z":"ad78cee0.37199","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.rss.channel[0].item[[0..9]]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":632,"y":408,"wires":[["79f23a35.f89e3c"]]}]

See the change node where the elements are reduced to 10

1 Like

Thank you very much! Seems to work for me!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.