1.1.1 • Published 7 years ago
thief-cli v1.1.1
Thief CLI
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-cliThis is the preferred method to install thief-cli, as it will always install the most recent stable release.
Commands
thief versionthief init [Target Name]thief list-targetthief select-targetthief current-targetthief delete-targetthief testthief start
thief version
Get current version
USAGE
$ thief (-v|--version|version)
OUTPUT
thief-cli/0.0.1 darwin-x64 node-v8.14.0thief init Target Name
Set up new target
USAGE
$ thief init my-target-3
OUTPUT
Description: this is for descriptionThis 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-3thief current-target
Your active target
USAGE
$ thief current-target
OUTPUT
Your active target is my-target-1thief 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-3thief 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... ⣻