File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,25 @@ hq (html query) - commandline HTML processor © Robin Broda, 2018
2828Usage: build/hq [options] <selector> <mode> [mode argument]
2929
3030Options:
31- -h, --help show this text
32-
33- <selector> selector to match
34- <mode> processing mode
35- may be one of { data, text, attr }:
36- data - return raw html of matching elements
37- text - return inner text of matching elements
38- attr - return attribute value X of matching elements
39- [mode argument] - attribute to return
31+ -h, --help
32+ show this text
33+ -f, --file
34+ file to read (defaults to stdin)
35+
36+ <selector>
37+ CSS selector to match against
38+ <mode>
39+ processing mode
40+ may be one of { data, text, attr }:
41+ data - return raw html of matching elements
42+ text - return inner text of matching elements
43+ attr - return attribute value of matching elements
44+ <mode argument: attr>
45+ attribute to return
46+
47+ Examples:
48+ curl -sSL https://example.com | build/hq a data
49+ curl -sSL https://example.com | build/hq a attr href
4050```
4151
4252Example usage:
You can’t perform that action at this time.
0 commit comments