0.0.2 • Published 6 years ago
capture-html v0.0.2
Capture HTML
Capture fullpage website
caphtml -m -T jpeg -Q 100 -F https://example.com
Options
-m
: 手机模式
-F
: 全屏截取
-T <type>
: type取值为jpeg
和png
两种
-Q <quality>
: quality取值范围1~100, 只有在设置了-T
后此项才生效
-d <selector>
: 截取内容参考的selector(同jquery的写法), 注: 字符#需写成编码后的值%23,如#app应写成%23app