Example #1
0
 /**
  * @param ScraperEntity $scraper
  */
 public function scrapeNext(ScraperEntity $scraper)
 {
     foreach ($this->crawler->getNextUrls() as $url) {
         if ($this->async) {
             $this->scrapeAfter($scraper, $url, new \DateTime());
         } else {
             $this->scrape($scraper, $url);
         }
     }
 }