diff --git a/src/Crawler.php b/src/Crawler.php index 948db2e..e2a4a13 100644 --- a/src/Crawler.php +++ b/src/Crawler.php @@ -28,6 +28,10 @@ class Crawler{ $this->crawler->setCrawlProfile(new CrawlAllUrls()); } + public function setUserAgent($agent){ + $this->crawler->setUserAgent($agent); + } + public function crawl($url){ $this->crawler->startCrawling($url); }