All notable changes to this project will be documented in this file.
The format mostly follows Keep a Changelog.
- New
enabled
option for all jobs. Set to false to disable a job without needing to remove it or comment it out (Requested in #625 by snowman, contributed in #785 by jamstah) - Command line options to enable and disbale jobs (Requested in #813 by gapato, contributed in #820 by jamstah)
- New option
ignore_incomplete_reads
(Requested in #725 by wschoot, contributed in #787 by wfrisch) - New option
wait_for
in browser jobs (Requested in #763 by yuis-ice, contributed in #810 by jamstah) - Added tags to jobs and the ability to select them at the command line (#789 by jamstah)
- New filter
re.findall
(Requested in #804 by f0sh, contributed in #805 by jamstah) - Added tags to jobs and the ability to select them at the command line (#789, #824 by jamstah)
- New reporter:
gotify
(#823 by franco-righetti)
- Remove EOL'd Python 3.7 (new minimum requirement is Python 3.8), add Python 3.12 testing
- Adds optional
reply_to
option for email reporters (#794 by trevorshannon) - Replace the dead dependency
appdirs
withplatformdirs
(#811 by Maxime Werlen, #819 via e-dschungel) - New concurrency test (#806 by Jamstah)
jobs.yaml
sanity checks now allows the file to be owned byroot
(#828)
email
reporter: Allow multiple recipients forsendmail
method (#797, by monperrus)- Fix documentation for watching Github tags and releases, again (#723)
- Fix
--test-reporter
command-line option soseparate
configuration option is no longer ignored when sending test notifications (#772, by marunjar) - Fix line height and dark mode regression (#774 reported by kongomongo, PRs #777 and #778 by trevorshannon)
- Fix compatibility with lxml >= 5 which caused the CSS Selector filter to fail (#783 reported by jamesquilty, PR #786 by jamstah)
- Fix pep8 test to ignore files in the site-packages directory for cases where the venv is in the project directory (#788 by jamstah)
- Fix HTML diff table rendering for long line lengths (#793 by trevorshannon)
- Fix IndexError after failed edit (#801 by jwilk)
- Fix concurrency issue in Python 3.12 by upgrading to minidb 2.0.8 (fixes #779)
- Browser jobs: Migrate from Pyppeteer to Playwright (#761, by Paul Sattlegger, fixes #751)
css
andxpath
filters now accept asort
subfilter to sort matched elements lexicographically
- Rework handling of running from a source checkout, fixes issues with example files
when
urlwatch
was run as/usr/sbin/urlwatch
, e.g. on Void Linux (fixes #755) - Add support for docutils >= 0.18, which deprecated
frontend.OptionParser
(fixes #754) - Browser jobs: Fix support for Python 3.11 with
@asyncio.coroutine
removal (#759, by Faster IT)
browser
job: Add support for specifyinguseragent
(#700, by Francesco Versaci)- Document how to ignore whitespace changes (PR#707, by Paulo Magalhaes)
shell
reporter: Call a script or program when changes are detected (fixes #650)- New
separate
configuration option for reporters to split reports into one-per-job (contributed by Ryne Everett) --change-location
option allowing job location to be changed without losing job history (#739, by trevorshannon)
- Docs: Re-group diff-related topics and improve wording (PR#712, by neutric)
- Improved HTML e-mail diff style, including Dark Mode support (#730, by trevorshannon)
- Require Python >= 3.7, as Python 3.6 was EOL'd on 2021-12-23
Dockerfile
: Shrink image by switching to an Alpine-based Python 3.11 base image, this reduces the container size from 1 GiB to 151 MiB (#731, by Scott Edlund)--gc-cache
can now take a parameter to keep more than 1 historical snapshot (#732, by trevorshannon)
- Limit e-mail header length to 78 characters to avoid issues with some SMTP servers (PR#703, fixes #702, by Julien Palard)
- Fix a ResourceWarning for unclosed files when running unit tests (PR#698, by Louis Sautier)
- Add support for html2text 2.1.1 and newer by feature-checking
-utf8
support via-help
(fixes #718) - html2text options were only applied to the first job when using
job_defaults
(PR#726, fixes #588, by trevorshannon) - Update Github tags watch filter documentation with new XPath (fixes #723, by Luis Aranguren)
- Fix
--gc-cache
to clear unknown keys when using Redis storage (fixes #743, by scottmac)
- Add a
colored
setting for the Discord reporter, enabled by default (PR#683 by Michał Ciołek) - Add a
splitlines
filter for trimming leading/trailing whitespace in each line (PR#693 by Lukas Anzinger) - If a shell job fails, the job's
stdout
andstderr
are added to the error message (fixes #689) shell
job: Add optionalstderr
key to customize how output onstderr
is treated- Add
--dump-history JOB
command-line option to print historic job outputs (fixes #681) - Add
display
/empty-diff
configuration option to skip reports when diffs are empty due todiff_filter
(fixes #692) - New man pages:
urlwatch-intro(7)
,urlwatch-deprecated(7)
,urlwatch-cookbook(7)
,urlwatch-jobs(5)
,urlwatch-filters(5)
,urlwatch-config(5)
andurlwatch-reporters(5)
.
- Require minidb 2.0.6; issue
VACUUM
only with--gc-cache
(fixes #690) - For shell jobs,
stderr
output isn't sent to urlwatch's stdout anymore; addstdout: urlwatch
to your shell job definition if you depend on the old default behavior
pytest
command-line arguments are not wrongly interpreted byCommandConfig
anymore (fixes #677)
- Man pages in
share/man/
are generated fromdocs/source/
using Sphinx. In order to not require Sphinx for normal installation,update-manpages.sh
is used to generate and fix up man pages stored inshared/
. These man pages are stored in Git and in the release tarballs, so installations from source do not need to have Sphinx available for the manpages to be available. - Packagers can customize the
manpages_url
setting indocs/source/conf.py
to point to the distribution's web man pages for the generated HTML documentation (if Sphinx is used to generate HTML docs).
- The Telegram reporter has gained two new options:
silent
: Receive message notification without soundmonospace
: Format message in monospace style
- Support for running a subset of jobs by specifying their index on the command line
- Migrated CI pipeline from Travis CI to Github Actions
user_visible_url
can now be specified for all job types (#654, by kongomongo)- Added a
remove-duplicate-lines
filter. - Added a
csv2text
filter. - Set envelope from (
-f
option) when sending emails usingsendmail
- It is now possible to override the HTTP
method
whendata
is set on a URL job
- Fix UnboundLocalError when SMTP auth is enabled, but keyring is not installed (#667)
- New filter:
pretty-xml
to indent/pretty-print XML documents - New filter:
jq
to parse, transform, and extract JSON data - New reporter:
prowl
(by nitz)
- Proper multi-line highlighting for wdiff (PR#615, by kongomongo)
- Fix command-line generation for html2text (PR#619, by Eloy Paris)
- Added 'wait_until' option to browser jobs to configure how long the headless browser will wait for pages to load.
- Jobs now have an optional
treat_new_as_changed
(defaultfalse
) key that can be set, and will treat newly-found pages as changed, and display a diff from the empty string (useful fordiff_tool
ordiff_filter
with side effects) - New reporters:
discord
,mattermost
- New key
user_visible_url
for URL jobs that can be used to show a different URL in reports (useful if the watched URL is a REST API endpoint, but the report should link to the corresponding web page) - The Markdown reporter now supports limiting the report length via the
max_length
parameter of thesubmit
method. The length limiting logic is smart in the sense that it will try trimming the details first, followed by omitting them completely, followed by omitting the summary. If a part of the report is omitted, a note about this is added to the report. (PR#572, by Denis Kasak)
- Diff output is now generated more uniformly, independent of whether
the input data has a trailing newline or not; if this behavior is not
intended, use an external
diff_tool
(PR#550, by Adam Goldsmith) - The
--test-diff-filter
output now properly reports timestamps from the history entry instead of the current date and time (Fixes #573) - Unique GUIDs for jobs are now enforced at load time, append "#1", "#2", ... to the URLs to make them unique if you have multiple different jobs that share the same request URL (Fixes #586)
- When a config, urls file or hooks file does not exist and should be edited or inited, its parent folders will be created (previously only the urlwatch configuration folder was created; Fixes #594)
- Auto-matched filters now always get
None
supplied as subfilter; any custom filters must accept asubfilter
parameter after the existingdata
parameter - Drop support for Python 3.5
-
Make imports thread-safe: This might increase startup times a bit, as dependencies are imported on bootup instead of when first used. Importing in Python is not (yet) thread-safe, so we cannot import new modules from the worker threads reliably (Fixes #559, #601)
-
The Matrix reporter was improved in several ways (PR#572, by Denis Kasak):
- The maximum length of the report was increase from 4096 to 16384.
- The report length limiting is now implemented via the new length limiting functionality of the Markdown reporter. Previously, the report was simply trimmed at the end which could break the diff blocks and make them render incorrectly.
- The diff code blocks are now tagged as diffs which will allow the diffs to be syntax highlighted as such. This doesn't yet work in Element, pending on the resolution of trentm/python-markdown2#370.
- Added
--test-reporter REPORTER
command-line option to send an example report using any configured notification service JobBase
now hasmain_thread_enter()
andmain_thread_exit()
functions that can be overridden by subclasses to run code in the main thread before and after processing of a job (based on an initial implementation by Chenfeng Bao)
- The
--test-slack
command line option has been removed, you can test your Slack reporter configuration using--test-reporter slack
- The
browser
job now uses Pyppeteer instead of Requests-HTML for rendering pages while executing JavaScript; this makes JavaScript execution work properly (based on code by Chenfeng Bao)
- Applying legacy
hooks.py
filters (broken since 2.19; reported by Maxime Werlen)
- A job can now have a
diff_filter
set, which works the same way as the normalfilter
(and has the same filters available), but applies to thediff
output instead of the page content (can be tested with--test-diff-filter
, needs 2 or more historic snapshots in the cache) - Documentation now has a section on the configuration settings (
--edit-config
) - New filter:
ocr
to convert text in images to plaintext (using Tesseract OCR) - New reporters:
ifttt
to send an event to If This Then That (ifttt.com) (#512, by Florian Gaultier)xmpp
to send a message using the XMPP (Jabber) protocol (#533, by Thorben Günther)
- The
urlwatch
script (Git only) now works when run from different paths - Chunking of strings (e.g. for Slack and Telegram) now adds numbering (e.g.
(1/2)
) to the messages (only if a message is split into multiple parts) - Unit tests have been migrated from
nose
topytest
and moved fromtest/
tolib/urlwatch/tests/
- The
css
andxpath
filters now acceptskip
andmaxitems
as subfilter - The
shellpipe
filter now inherits all environment variables (e.g.$PATH
) of theurlwatch
process
- The
html2text
methodlynx
now treats any subfilters with a non-null
value as command-line argument-key value
(previously only the valuetrue
was treated like this, and any other values were silently dropped)
- Documentation is now available at urlwatch.readthedocs.io
and shipped in the source tarball under
docs/
; filter examples in the docs are unit-tested - New filters:
reverse
: Reverse input items (default: line-based) with optionalseparator
pdf2text
: Convert PDF files to plaintext (must be first filter in chain)shellpipe
: Filter text with arbitrary command-line utilities / shell scripts
FilterBase
API improvements for specifying subfilters:- Add
__supported_subfilters__
for sub filter checking and--features
output - Add
__default_subfilter__
to map value-only parameters to dict parameters, for example thegrep
filter now has a default subfilter namedre
- Add
- Support for using Redis as a cache backend via
--cache=redis://localhost:6379/
- Declare updated Python 3.5 dependency in
setup.py
(already a requirement since urlwatch 2.18)
- Filter improvements:
sort
: Addreverse
option to reverse the sorting ordersort
: Addseparator
option to specify item separator (default is still line-based)beautify
: Thejsbeautifier
(for<script>
tags) andcssbeautifier
(for<style>
tags) module dependencies are now optional - if they are not installed, beautify only works on the HTML- Most filters that only had unnamed subfilters (e.g.
grep
) now have a named default subfilter
- Reporter improvements:
pushover
: The messagepriority
can now be configured
- Travis CI: Set
pycodestyle
version to 2.6.0 to avoid CI breakage when new style checks are added - Diff results are now runtime cached on a per-job basis, which shouldn't affect behavior, but
could be observed by an external
diff_tool
running at most once per job instead of multiple times - Jobs with a custom
diff_tool
or ashellpipe
filter are now ignored ifjobs.yaml
has the world-writable bit (o+w
) set or is not owned by the current user (does not apply to Windows); previously onlyshell
jobs were ignored if the permissions/owners were wrong
- String-based filter definitions (e.g.
html2text,grep:Current.*version,strip
) are now deprecated, it is recommended to use YAML-based dictionary-style listing of filters, which is more flexible, easier to read and write and more structured
- New filter:
re.sub
that can replace/remove strings using regular expressions - Support
ignore_timeout_errors
andignore_too_many_redirects
for URL jobs (#423, by Josh aka Zevlag) - HTML reporter: Add
viewport
meta tag for improved viewing on mobile devices (#432, by Mike Borsetti) - Optional support for insecure SMTP password storage in the config; use with caution (#431)
- Add
matrix
reporter - New filter:
beautify
that can beautify HTML, JavaScript and CSS
- Fix
--test-filter
when the specified job is not found - Fix another
YAMLLoadWarning
in unit tests (#382, by Louis Sautier) - Documentation updates and typo fixes (by Nate Eagleson)
- Pushover: Fix default device config (Fixes #409 and #372, documented by Richard Goodwin)
- Nicer formatting of
--features
for jobs with no docstring or many keys - The XPath and CSS filters now support XML namespaces (#404, by Chenfeng Bao)
- Drop support for Python 3.3 and Python 3.4 (new minimum requirement is Python 3.5)
- Use
html.escape
instead ofcgi.escape
(which was removed in Python 3.8; #424, by Chenfeng Bao) - Allow non-ASCII characters in
format-json
output filter (#433, by Mike Borsetti) - The
keyring
config option foremail
was changed toauth
; if you have problems with authentication where none is needed, setreport/email/smtp/auth
tofalse
- XPath/CSS: Support for excluding elements (#333, by Chenfeng Bao)
- Add support for using external
diff_tool
on Windows (#373, by Chenfeng Bao) - Document how to use Amazon Simple E-Mail Service "SES" (by mborsetti)
- Compare data with multiple old versions (
compared_versions
, #328, by Chenfeng Bao)
- YAML: Fix deprecation warnings (#367, by Florent Aide)
- Updated manpage with new options: Authentication, filter tests (Fixes #351)
- Text formatter: Do not emit empty lines for
line_length=0
(Fixes #357)
- SMTP configuration fix: Only use smtp.user config if it's a non-empty value
- XPath: Handle
/text()
selector (#282) - Document how to specify cookies to README.md (#264)
- Text Reporter:
minimal
config option to only print a summary (PR#304, fixes #147) - README.md: Document how to watch Github releases via XPath (#266)
- Support for parsing XML/RSS with XPath (Fixes #281)
- Allow explicit setting of
encoding
for URL jobs (PR#313, contributes to #306) - Slack Channel Reporter (PR#309)
- ANSI color output on the Windows console via
colorama
(PR#296, closes #295) - Support for using CSS selectors via the
cssselect
module (PR#321, closes 273) ignore_http_error_codes
is now an option for URL jobs (PR#325, fixes #203)job_defaults
in the config for globally specifying settings (PR#345, closes #253)- Optional
timeout
(in seconds) for URL jobs to specify socket timeout (PR#348, closes #340)
- Support for JSON storage (dead code that was never used in production; PR#336)
HtmlReporter
now also highlights links for browser jobs (PR#303)- Allow
--features
and--edit-*
to run withouturls.yaml
(PR#301) - When a previous run had errors, do not use conditional GETs (PR#313, fixes #292)
- Explicitly specify JSON pretty print
separators
for consistency (PR#343) - Use data-driven unit tests/fixtures for easier unit test maintenance (PR#344)
- Fix migration issues with case-insensitive filesystems (#223)
- Correctly reset retry counter when job is added or unchanged (PR#291, PR#314)
- Fix a
FutureWarning
on Python 3.7 with regard to regular expressions (PR#299) - If the filter list is empty, do not process the filter list (PR#308)
- Fix parsing/sanity-checking of
urls.yaml
after editing (PR#317, fixes #316) - Fix Python 3.3 compatibility by depending on
enum34
there (PR#311) - Allow running unit tests on Windows (PR#318)
- Fix migration issues introduced by PR#180 and #256 (PR#323, fixes #267)
- Support for Mailgun regions (by Daniel Peukert, PR#280)
- CLI: Allow multiple occurrences of 'filter' when adding jobs (PR#278)
- Fixed incorrect name for chat_id config in the default config (by Robin B, PR#276)
- Filter to pretty-print JSON data:
format-json
(by Niko Böckerman, PR#250) - List active Telegram chats using
--telegram-chats
(with fixes by Georg Pichler, PR#270) - Support for HTTP
ETag
header in URL jobs andIf-None-Match
(by Karol Babioch, PR#256) - Support for filtering HTML using XPath expressions, with
lxml
(PR#274, Fixes #226) - Added
install_dependencies
tosetup.py
commands for easy installing of dependencies - Added
ignore_connection_errors
per-job configuration option (by Karol Babioch, PR#261)
- Improved code (HTTP status codes, by Karol Babioch PR#258)
- Improved documentation for setting up Telegram chat bots
- Allow multiple chats for Telegram reporting (by Georg Pichler, PR#271)
- Support for specifying a
diff_tool
(e.g.wdiff
) for each job (Fixes #243) - Support for testing filters via
--test-filter JOB
(Fixes #237)
- Moved ChangeLog file to CHANGELOG.md and using Keep a Changelog format.
- Force version check in
setup.py
, to exclude Python 2 (Fixes #244) - Remove default parameter from internal
html2text
module (Fixes #239) - Better error/exception reporting in
--verbose
mode (Fixes #164)
- Old ChangeLog entries
- Bugfix: Do not 'forget' old data if an exception occurs (Fixes #242)
- Retry: Make sure
tries
is initialized to zero on load (Fixes #241)
- html2text: Make sure the bs4 method strips HTML tags (by Louis Sautier)
- Browser: Add support for browser jobs using
requests-html
(Fixes #215) - Retry: Add support for optional retry count in job list (by cmichi, fixes #235)
- HTTP: Add support for specifying optional headers (by Tero Mononen)
- File editing: Fix issue when
$EDITOR
contains spaces (Fixes #220) - ChangeLog: Add versions to recent ChangeLog entries (Fixes #235)
- E-Mail: Add support for
--smtp-login
and document GMail SMTP usage - Pushover: Device and sound attribute (by Tobias Haupenthal)
- XDG: Move cache file to
XDG_CACHE_DIR
(by Maxime Werlen) - Migration: Unconditionally migrate urlwatch 1.x cache dirs (Fixes #206)
- Cleanups: Fix out-of-date debug message, use https (by Jakub Wilk)
- Documentation: Mention
appdirs
(by e-dschungel)
- SMTP: Fix handling of missing
user
field (by e-dschungel) - Manpage: Fix documentation of XDG environment variables (by Jelle van der Waa)
- Unit tests: Fix imports for out-of-source-tree tests (by Maxime Werlen)
- Filtering:
style
(by gvandenbroucke),tag
(by cmichi) - New reporter: Telegram support (by gvandenbroucke)
- Paths: Add
XDG_CONFIG_DIR
support (by Jelle van der Waa)
- ElementsByAttribute: look for matching tag in handle_endtag (by Gaetan Leurent)
- HTTP: Option to avoid 304 responses,
Content-Type
header (by Vinicius Massuchetto) - html2text: Configuration options (by Vinicius Massuchetto)
- Issue #127: Fix error reporting
- E-Mail: Fix encodings (by Seokjin Han), Allow
user
parameter for SMTP (by Jay Sitter)
- New filters:
sha1sum
,hexdump
,element-by-class
- New reporters: pushbullet (by R0nd); mailgun (by lechuckcaptain)
- Improved filters:
BeautifulSoup
support forhtml2txt
(by lechuckcaptain) - Improved handlers: HTTP Proxy (by lechuckcaptain); support for
file://
URIs - CI Integration: Build configuration for Travis CI (by lechuckcaptain)
- Consistency: Feature list is now sorted by name
- Issue #108: Fix creation of example files on first startup
- Issue #118: Fix match filters for missing keys
- Small fixes by: Jakub Wilk, Marc Urben, Adam Dobrawy and Louis Sautier
Older ChangeLog entries can be found in the
old ChangeLog file,
or with git show 2.12:ChangeLog
on the command line.