Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
magpie
Commits
a41c561e
Commit
a41c561e
authored
Jun 11, 2019
by
Tobias Steiner
Browse files
Add a bigger delay between requests
parent
45d0a0a1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/crawler.ts
View file @
a41c561e
...
...
@@ -34,7 +34,7 @@ const spider = new Spider({
// How many requests can be run in parallel
concurrent
:
10
,
// How long to wait after each request
delay
:
1
00
,
delay
:
2
00
,
// A stream to where internal logs are sent, optional
logs
:
logger
,
// Re-visit visited URLs, false by default
...
...
@@ -69,7 +69,10 @@ class Crawler extends Transform {
*/
private
timeout
=
20
;
private
serverTimeout
=
15
*
1000
;
/**
* Timeout for a server
*/
private
serverTimeout
=
30
*
1000
;
/**
* Logger
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment