You shouldn’t expect next_page_link to work if single_page_link is present and matches - single_page_link is supposed to be the link that loads the entire thing on one page, e.g. print view or single page view. It was always intended as a better alternative to next_page_link (if the site offers a single-page view of course). In this case, it doesn’t look like you’re using it to match a single-page view, but the first page.
Based on a quick look at the source of the page, I think your next_page_link XPath expression needs to select based on the inner child element. Something like:
//a[contains(@href, 'slide=') and ./div[contains(@class, 'fa-angle-right')]]/@href
Should match the right link given something like the below:
Thank you - the page offers a single page view function but unfortunately this does not work ;-(. If I change the post link to makefulltextfeed.php?url=https://guestofaguest.com/new-york/restaurants/the-10-trendiest-outdoor-brunch-spots-in-nyc?slide=1, it works otherweise no way. So the problem is the combination of single_page_link and next_page_link. What is the reason for this and are there alternatives?
The problem here is that you’re using single_page_link for a different purpose than it was intended for. We do that ourselves in some site config files (e.g. to bypass cookie warnings which require users to click a ‘continue’ button). But it was intended for articles split across multiple pages. In that scenario you’re usually offered a ‘single page’ view and/or ‘next page/previous page’ links. By following the ‘single page’ link, we expect to be getting the full content, so it doesn’t make sense to then look for next page/previous page links on the resulting page.
What’s needed here is something that works in a similar way to single_page_link, but is instead intended to be a simple, follow this link directive with no assumption as to what the new page will contain. That’s unfortunately not available at the moment.
Thanks for the feedback - understood. It would be great if there was such logic - so I can determine by the sequence in the config what is processed and how. Would cover a lot of/most scenarios and give you much more flexibility. thx