thp / urlwatch

Watch (parts of) webpages and get notified when something changes via e-mail, on your phone or via other means. Highly configurable.
https://thp.io/2008/urlwatch/
Other
2.83k stars 350 forks source link

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

Open ghost opened 4 years ago

ghost commented 4 years ago

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
thp commented 4 years ago

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

[] ... Parameter can be supplied as unnamed value
ghost commented 4 years ago

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?