Continuing the discussion from Configure the Discourse RSS Polling Plugin:
Hi - I’m struggling to get the RSS Polling Plugin to work for my RSS feed: https://www.hinz.org.nz/resource/rss/news.rss
My browser (Chrome) doesn’t want to open it. But when I run it through a validator it seems to be okay:
Is there something I’m missing in the config?
Curiously, I get a 403 if I try
Craigs-iMac:~ craig$ curl -I https://www.hinz.org.nz/resource/rss/news.rss
date: Wed, 11 May 2022 14:04:59 GMT
set-cookie: datadome=EU3BHAFHQ05_KVgwW1Wjs9oOG7yBN6ViNb-Z0zhemMzTdky84_xqOxGy~PCdj6GF2paWbjlV6YBVr8EffwN.eBXFJjRmcsp9ix7FLkAxA2yCry0Eo6sLlqchK2zbnjV; Max-Age=31536000; Domain=.hinz.org.nz; Path=/; Secure; SameSite=Lax
x-xss-protection: 1; mode=block
Maybe that server is picky about user-agents? …if the RSS validator can fetch it, but my curl, and the plugin cannot . . .
https://www.hinz.org.nz/resource/rss/news.rss replies to
GET requests with a
https://cdn.ymaws.com/www.hinz.org.nz/resource/rss/news.rss but to
HEAD requests with a
You can configure the plugin to download the feed from
https://cdn.ymaws.com/www.hinz.org.nz/resource/rss/news.rss directly to avoid their mess.
I’ve got a couple of ongoing problems with this, and would love a bit more help.
Problem 1: The expand post content button doesn’t work
I get this in the console:
Problem 2: limited ability to customise the resulting post
The truncated post brings in just the first
<p>. Unfortunately I need the second one (the first is junk).
While I can target some ugly HTML passed through from the feed and suppress it with CSS, as well as customise the “This is a companion discussion topic…” text, I’m stuck with the unfortunate inline styling that is passed through. And I miss the highly valuable 2nd paragraph.
Is there a way to get rid of all the HTML elements / styles in there and just bring in the raw text? Or better yet, a selection of the raw text (in my case the 2nd
<p> element of each, including
Is this achievable / configurable? I couldn’t work out how to use CSS selectors to achieve this with my feed.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.