urlwatch icon indicating copy to clipboard operation
urlwatch copied to clipboard

question on example job for urlwatch releases using new dictionary based filter lists

Open ghost opened this issue 4 years ago • 2 comments

This fails when adding method: xml

name: (01)urlwatch update released
url: "https://github.com/thp/urlwatch/releases/latest"
filter:
  - xpath:
      path: '(//div[contains(@class,"release-timeline-tags")]//h4)[1]/a'
      method: xml
  - html2text:
      method: re
---

You mention that when using default subfilters there is no need to add a second line. It might be useful to list somewhere what the default subfilters are.

you say that:

filter:
  - css:
      selector: body
  - html2text:
      method: re
  - strip

is the same as:

filter:
  - css: body
  - html2text: re
  - strip

ghost avatar Aug 23 '20 20:08 ghost

In the urlwatch --features output, the default parameters are listed enclosed in [], as mentioned in its output:

[] ... Parameter can be supplied as unnamed value

thp avatar Aug 23 '20 20:08 thp

Thank you. In the case above what is the reason that specifying method: xml causes the job to error? Is it because the path is written in xml format and there is no need to specify?

ghost avatar Aug 23 '20 20:08 ghost