The discussion, titled “Trouble with a RSS feed,” revolves around issues with the RSS Polling Plugin on Discourse. nathank initially reports difficulty accessing the RSS feed from www.hinz.org.nz, which fails to load in the browser and plugin. craigconstantine confirms a 403 error via curl, suggesting the server may block certain requests. Falco identifies that the feed redirects on GET requests but returns a 403 on HEAD, and recommends configuring the plugin to fetch the feed directly from the CDN URL https://cdn.ymaws.com/www.hinz.org.nz/resource/rss/news.rss, which resolves the issue for nathank. nathank then raises two new concerns: the “expand post content” button fails due to a console error, and the plugin only pulls the first paragraph of the feed, ignoring the second (more valuable) paragraph. He seeks ways to extract raw text, bypass inline styles, or target specific HTML elements like the second <p> tag, but is unsure how to configure the plugin or use CSS selectors effectively.
Looks like https://www.hinz.org.nz/resource/rss/news.rss replies to GET requests with a 301 to https://cdn.ymaws.com/www.hinz.org.nz/resource/rss/news.rss but to HEAD requests with a 403.
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.
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> only)?