Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryankirkman/htmldiff2
Diff contents regions of HTML documents using CSS selectors. Pretty diff formatted output.
https://github.com/ryankirkman/htmldiff2
Last synced: 7 days ago
JSON representation
Diff contents regions of HTML documents using CSS selectors. Pretty diff formatted output.
- Host: GitHub
- URL: https://github.com/ryankirkman/htmldiff2
- Owner: ryankirkman
- Created: 2015-06-19T03:26:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-04T08:20:38.000Z (about 9 years ago)
- Last Synced: 2024-11-07T22:45:58.344Z (about 2 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
usage: `htmldiff2.py [-h] [--show-config-format] [-t THREADS] [--debug] config`
Use htmldiff2.py for diffing HTML served from the same path on different servers.
This is useful when you want to find differences between production and
staging environments.examle usage: `./htmldiff2.py example_configs/reddit_vs_reddit_beta.json`
positional arguments:
```
config JSON config file. See below for config schema.
```optional arguments:
```
-h, --help show this help message and exit
--show-config-format show the config format
-t THREADS, --threads THREADS
set the number of threads
--debug disable threading for debug purposes
```JSON config file schema:
```JSON
{
"title": "htmldiff config",
"type": "object",
"properties": {
"servers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"base_url": {"type": "string"},
"auth": {
"type": "array",
"items": { "type": "string" }
},
"protocol": {"type" : "string"}
},
"required": ["base_url"]
}
},
"relative_urls": {
"type": "array",
"minItems": 1,
"items": { "type": "string" },
"uniqueItems": true
},
"selectors": { "type": "object" }
},
"required": ["servers", "relative_urls", "selectors"]
}
```