fetch image from style: background-image #724
-
I'm trying to create an rss feed from https://www.salland1.nl/category/deventer/ (they used to have a regular RSS :-( )
So I'm trying this in feeds.yml
I've also tried gsub using a regex, but I could't figure out how to declare that in yaml |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hej / Moin, Little issues with your config, here's the corrected one: channel:
url: https://www.salland1.nl/category/deventer/
title: Salland1 Deventer
description: Nieuws uit Deventer
selectors:
items:
selector: '.td-cpt-post'
title:
selector: 'a[title]'
extractor: attribute
attribute: title
url:
selector: 'a'
extractor: href
enclosure:
selector: "span.entry-thumb"
extractor: "attribute"
attribute: "style"
post_process:
- name: gsub
pattern: "background-image: url\\([']?"
replacement: ""
- name: gsub
pattern: "[']?\\)"
replacement: ""
Their markup seems skipp I figure the variable name is a bit too verbose :) |
Beta Was this translation helpful? Give feedback.
-
FYI: html2rss v0.12.0 (just released) provides a bit more helpful error messages: |
Beta Was this translation helpful? Give feedback.
Hej / Moin,
sorry took me a while to get back.
Little issues with your config, here's the corrected one:
Their markup seems sk…