Im making a system that consumes data from RSS feed URLs that the user provide and I would like to cover the case of a RSS feed with pagination.
I am using the Node Module rss-parser to get the feeds information and I've seen many with a paginationLinks such as:
paginationLinks: {
self: "..."
}
But that paginationLinks.self will only refer to the same set of items (obviously).
Is there any other attribute to the paginationLinks object? if so would paginationLinks.next would give me the fllowing set of items and paginationLinks.previous the previous set or is there any other syntax?
rss-parser output example from this rss feed:
{
items: [
{
title: 'Chile: Apology for sterilizing HIV-positive women in moment of ‘reproductive justice’',
link: 'https://news.un.org/feed/view/en/story/2022/05/1119272',
pubDate: 'Fri, 27 May 2022 16:14:39 -0400',
enclosure: [Object],
content: 'The head of the UN agency leading the fight against HIV/AIDS, welcomed on Friday a public apology from Chile on a landmark case of involuntary sterilization of women living with HIV.',
contentSnippet: 'The head of the UN agency leading the fight against HIV/AIDS, welcomed on Friday a public apology from Chile on a landmark case of involuntary sterilization of women living with HIV.',
guid: 'https://news.un.org/feed/view/en/story/2022/05/1119272',
isoDate: '2022-05-27T20:14:39.000Z',
itunes: {}
},
.
.
.
],
feedUrl: 'https://news.un.org/feed/subscribe/en/news/region/americas/feed/rss.xml',
image: {
link: 'https://news.un.org/en/',
url: 'https://news.un.org/en/sites/all/themes/bootstrap_un_news/images/un-emblem-for-rss.png',
title: 'UN News',
width: '144',
height: '144'
},
paginationLinks: {
self: 'https://news.un.org/feed/subscribe/en/news/region/americas/feed/rss.xml'
},
title: 'UN News - Americas',
description: '<p>Test</p>',
generator: 'United Nations',
link: 'https://news.un.org/en/',
language: 'en',
copyright: 'Copyright © 2022 United Nations',
itunes: {}
}