kirinuki-cli
v0.1.1
Published
Convert any html to JSON using CSS selectors.
Downloads
4
Readme
kirinuki-cli
Convert any html to JSON using CSS selectors.
Sample
jo -B topics="$(jo -B title="$(jo -a .storylink text)" link=.storylink _unfold=true )" | xargs -0 kirinuki scrape https://news.ycombinator.com/ | jq .`
Usage
$ npm install -g kirinuki-cli
$ kirinuki COMMAND
running command...
$ kirinuki (-v|--version|version)
kirinuki-cli/0.1.1 linux-x64 node-v12.3.1
$ kirinuki --help [COMMAND]
USAGE
$ kirinuki COMMAND
...
Commands
kirinuki help [COMMAND]
display help for kirinuki
USAGE
$ kirinuki help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
kirinuki scrape URL SCHEMA
Scrape website by kirinuki-schema(https://github.com/rike422/kirinuki-core)
USAGE
$ kirinuki scrape URL SCHEMA
ARGUMENTS
URL scrape target url
SCHEMA scrape rules, please refer to https://github.com/rike422/kirinuki-core
OPTIONS
-C, --chrome=chrome Executable chrome path when use already installed Chrome
-T, --timeout=timeout Maximum time in milliseconds to wait for the browser instance to load. (default: 5000)
-h, --help show CLI help
-p, --puppeteer Scrape with puppeteer
See code: src/commands/scrape.ts