1.1.1 • Published 5 years ago

thief-cli v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Thief CLI

oclif Version Downloads/week License

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

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... ⣻