Skip to content

Commit

Permalink
feat: --ignore-robots-txt
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 23, 2020
1 parent b744d04 commit 33535b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Options:
--docs-extensions Comma-separated extensions that will be add to table,
default:doc,docx,xls,xlsx,ppt,pptx,pdf,rar,zip
--follow-xml-sitemap Follow sitemap.xml
--ignore-robots-txt Ignore disallowed in robots.txt
-m, --max-requests <num> Limit max pages scan (default: 0)
--no-headless Show browser GUI while scan
--no-remove-csv No delete csv after xlsx generate
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ program
.option('--no-limit-domain', `Scan not only current domain`)
.option('--docs-extensions', `Comma-separated extensions that will be add to table, default:doc,docx,xls,xlsx,ppt,pptx,pdf,rar,zip`, list)
.option('--follow-xml-sitemap', `Follow sitemap.xml`)
.option('--ignore-robots-txt', `Ignore disallowed in robots.txt`)
.option('-m, --max-requests <num>', `Limit max pages scan`, 0)
.option('--no-headless', `Show browser GUI while scan`)
.option('--no-remove-csv', `No delete csv after xlsx generate`)
Expand Down Expand Up @@ -74,6 +75,7 @@ async function start() {
fields: program.fields, // дополнительные поля
removeCsv: program.removeCsv, // удалять csv после генерации xlsx
consoleValidate: program.consoleValidate, // выводить данные валидации в консоль
obeyRobotsTxt: !program.ignoreRobotsTxt, // не учитывать блокировки в robots.txt
});
}
}
Expand Down

0 comments on commit 33535b2

Please sign in to comment.