A urlwatch filter to create .html files with visual diffs that can be opened in a browser.
To use this, perform the following:
-
Copy
hooks.pyto the directory where theurls.yamlfile is stored (should be$XDG_CONFIG_HOME/urlwatch/) -
Add
- browserdiffas the first filter to a job of your choice inurls.yaml:name: watchdog kind: url url: https://time.is/Unix_time filter: - browserdiff - element-by-id: smalltime - html2text - re.sub: pattern: '(.*)' repl: '\1\n'
-
Run
urlwatchonce to create a baseline -
After capturing at least 1 change in the job relative to the baseline, an .html file with visual diffs will be save in
$XDG_CONFIG_HOME/urlwatch/BrowserDiff/JobName -
In urlwatch's standard output, the first line includes a clickable
openlink to open the visual diff: -
The visual diff highlights changes:

