/**
  * Extract entries from given crawler object.
  *
  * @param \Symfony\Component\DomCrawler\Crawler $crawler
  * @return array
  */
 public function extractEntries(Crawler $crawler)
 {
     $links = $this->linksExtractor->extractEntries($crawler);
     $entries = array();
     if (count($links)) {
         foreach ($links as $link) {
             $entries[] = $this->entryExtractor->extractEntry($this->client->request('GET', $link));
         }
     }
     return $entries;
 }
 /**
  * Method to load data.
  *
  * @return array
  */
 protected function load()
 {
     $crawler = $this->client->request('GET', $this->url);
     return $this->entriesExtractor->extractEntries($crawler);
 }