dgtlmoon / dgtlmoon/changedetection.io

[feature] Access to filters and latest HTML from inside the `Notification` body and title

Open
#3,327 0 comments 0 reactions 0 assignees View on GitHub
enhancement Notifications systems
Dominant language
Python
Stars
34.3k
Forks
2.1k
Avg merge
22h 52m
Merged PRs (30d)
70

Description

For example, you have set some change detection on the text output of a web-page but you also want to extract some special HTML from inside that latest HTML as part of your snapshot

But the page includes some special link which you want to include in the notification (maybe you even want to update some API, or just want it by email etc)

## Include the output of a filter by row

```
{{watch_url}} had a change - compare it with {{watch_url}}

Special link inside document was: {% extract("//a[contains(@href, 'lets-go.html')]/@href") %}

```

so if the document contains something like

```

Some text i'm watching



Click here


```

Then it would return the `@href` full link `https://example.com/lets-go.html?yes=12345`

Full example

Image

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the Notification body and title are rendered and where filters are evaluated. Use the example extract expression and latest HTML requirement as the behavioral reference. Done means notification templates can access filter output and extract the requested link from the latest HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.