Skip to content

Commit

Permalink
feat: parse preset
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 17, 2020
1 parent 4e62940 commit 3330a60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const list = val => {

program
.option('-u --urls <urls>', 'Comma separated url list for scan', list)
.option('-p, --preset <preset>', 'Table preset', 'seo')
.option('-p, --preset <preset>', 'Table preset (minimal, seo, headers, parse)', 'seo')
.option('-d, --max-depth <depth>', 'Max scan depth', 10)
.option('-c, --concurrenty', 'Threads number', 2)
.option('--no-skip-static', `Scan static files`)
Expand Down
7 changes: 7 additions & 0 deletions src/scrap-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ const fields_presets = {
'response.headers.x-page-speed',
'response.headers.x-cached-by',
'response.headers.x-drupal-cache'
],
parse: [
'response.url',
'result.title',
'result.h1',
'result.description',
'result.keywords',
]
};

Expand Down

0 comments on commit 3330a60

Please sign in to comment.