kirinuki-cli
Convert any html to JSON using CSS selectors.
Last updated 3 days ago by rike422 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install kirinuki-cli 
SYNC missed versions from official npm registry.

kirinuki-cli

Convert any html to JSON using CSS selectors.

oclif Version Downloads/week License

Sample

jo -B topics="$(jo -B title="$(jo -a .storylink text)" link=.storylink _unfold=true )" | xargs -0 kirinuki scrape https://news.ycombinator.com/ | jq .`

gif

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

Current Tags

  • 0.1.1                                ...           latest (3 days ago)

3 Versions

  • 0.1.1                                ...           3 days ago
  • 0.1.0                                ...           7 months ago
  • 0.0.1                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 13
Last Day 0
Last Week 13
Last Month 0
Dependencies (7)
Dev Dependencies (26)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |