Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including thief-cli with all npm packages installed. Try it out:

var thiefCli = require("thief-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

thief-cli v1.1.1

Thief CLI

oclif Version Downloads/week License

* [Introduction](#introduction) * [Installation](#installation) * [Commands](#commands) * [Yaml Configuration](https://github.com/BagusAK95/thief-cli-docs/blob/master/README.md) * [Examples](https://github.com/BagusAK95/thief-cli-docs/tree/master/examples)

Introduction

Thief Command Line Interface (Thief CLI) is a tool for scraping website and manage data with command line/shell.

Installation

To install thief-cli in global mode, run this command in your terminal: ``` $ npm install -g thief-cli ``` This is the preferred method to install thief-cli, as it will always install the most recent stable release.

Commands

* [`thief version`](#thief-version) * [`thief init [Target Name]`](#thief-init-target-name) * [`thief list-target`](#thief-list-target) * [`thief select-target`](#thief-select-target) * [`thief current-target`](#thief-current-target) * [`thief delete-target`](#thief-delete-target) * [`thief test`](#thief-test) * [`thief start`](#thief-start)

thief version

Get current version

USAGE
  $ thief (-v|--version|version)

OUTPUT
  thief-cli/0.0.1 darwin-x64 node-v8.14.0

thief init [Target Name]

Set up new target

USAGE
  $ thief init my-target-3

OUTPUT
  Description: this is for description

This command will generate a my-target-3.yml

thief list-target

Your target list

USAGE
  $ thief list-target

OUTPUT
  ┌───────────────┬────────────────────────────────────────────────────────────────────────────────────┐
  │ Target Name   │ Description                                                                        │
  ├───────────────┼────────────────────────────────────────────────────────────────────────────────────┤
  │ my-target-1   │ this is for description                                                            │
  ├───────────────┼────────────────────────────────────────────────────────────────────────────────────┤
  │ my-target-2   │ this is for description                                                            │
  ├───────────────┼────────────────────────────────────────────────────────────────────────────────────┤
  │ my-target-3   │ this is for description                                                            │
  └───────────────┴────────────────────────────────────────────────────────────────────────────────────┘

thief select-target

Select your target

USAGE
  $ thief select-target

OPTIONS
  --name=Target Name

OUTPUT
  ? Select a target 
  ❯ my-target-1 
    my-target-2
    my-target-3

thief current-target

Your active target

USAGE
  $ thief current-target

OUTPUT
  Your active target is my-target-1

thief delete-target

Delete your target

USAGE
  $ thief delete-target

OPTIONS
  --name=Target Name

OUTPUT
  ? Select a target 
  ❯ my-target-1 
    my-target-2
    my-target-3

thief test

Test stealing data

USAGE
  $ thief test

OUTPUT
  Try to stealing https://demo.website.com/1... done

  ┌───────────────┬────────────────────────────────────────────────────────────────────────────────────┐
  │ Content       │ Result                                                                             │
  ├───────────────┼────────────────────────────────────────────────────────────────────────────────────┤
  │ my-content-1  │ this is for result                                                                 │
  ├───────────────┼────────────────────────────────────────────────────────────────────────────────────┤
  │ my-content-2  │ this is for result                                                                 │
  ├───────────────┼────────────────────────────────────────────────────────────────────────────────────┤
  │ my-content-3  │ this is for result                                                                 │
  └───────────────┴────────────────────────────────────────────────────────────────────────────────────┘
  ┌───────────────┬────────────────────────────────────────────────────────────────────────────────────┐
  │ Content       │ Result                                                                             │
  ├───────────────┼────────────────────────────────────────────────────────────────────────────────────┤
  │ my-content-1  │ this is for result                                                                 │
  ...

thief start

Start stealing data

USAGE
  $ thief start
  
OUTPUT
  Try to stealing https://demo.website.com/1... done
  Try to stealing https://demo.website.com/2... done
  Try to stealing https://demo.website.com/3... ⣻
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free