Skip to content

Commit

Permalink
Respect request delay
Browse files Browse the repository at this point in the history
  • Loading branch information
David Racovan committed Jul 30, 2024
1 parent ae09480 commit ef07126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Handlers/CrawlRequestFulfilled.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function __invoke(ResponseInterface $response, $index)

$this->crawler->getCrawlObservers()->crawlFailed($crawlUrl, $exception);

usleep($this->crawler->getDelayBetweenRequests());
return;
}

Expand Down

0 comments on commit ef07126

Please sign in to comment.