PHP Interface Spatie\Crawler\CrawlObserver

Show file Open project: spatie/crawler Interface Usage Examples

Public Methods

Method Description
finishedCrawling ( ) : void Called when the crawl has ended.
hasBeenCrawled ( Url $url, Psr\Http\Message\ResponseInterface | null $response, Url $foundOnUrl = null ) : void Called when the crawler has crawled the given url.
willCrawl ( Url $url ) : void Called when the crawler will crawl the url.

Method Details

finishedCrawling() public method

Called when the crawl has ended.
public finishedCrawling ( ) : void
return void

hasBeenCrawled() public method

Called when the crawler has crawled the given url.
public hasBeenCrawled ( Url $url, Psr\Http\Message\ResponseInterface | null $response, Url $foundOnUrl = null ) : void
$url Url
$response Psr\Http\Message\ResponseInterface | null
$foundOnUrl Url
return void

willCrawl() public method

Called when the crawler will crawl the url.
public willCrawl ( Url $url ) : void
$url Url
return void