dgtlmoon / dgtlmoon/changedetection.io

[feature] 'formatter' type plugin like `source` but `format_css:` etc

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

Description

Would be pretty handy to have some pluggy plugin for reformatting text, for example i want to monitor some pretty messy CSS for a change

the URL in changedetection could be `reformat_css:https://somesite/the-style.css`

then the output is run through `css` reformatter plugin before changedetection

the filters could also be an `include_filter` that is run after all the text and/or html filters are run

additionally, extra filters as part of `include_filters` could run after

https://github.com/dgtlmoon/changedetection.io/blob/01c1ac4c0ca3ddac0205380825b4a5cd5bb82ad1/changedetectionio/processors/text_json_diff/processor.py#L145

ie

`my_custom_filter_plugin:some options..`

Image

and

Image

Contributor guide

Open the contributing guide

Research direction

Start with changedetectionio/processors/text_json_diff/processor.py around line 145, which the issue identifies as the existing filter-processing point. Trace how source URLs and text or HTML filters are handled, then define the formatter and post-filter plugin behavior described here. Done means a CSS formatter URL flow and configurable include filters work without disrupting existing processing.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, python
Domain
backend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.