protected function getCrawler(int $year)
	{
		$getter = 'getters.uf.' . $this->getter;
		$url = str_replace('<year>', $year, config($getter . '.part'));
		try {
			$request = $this->client->request('GET', $url);
		} catch (ClientException $e) {
			return false;
		}

		if ($request->getStatusCode() != 200) {
			return false;
		}
		$client = new GClient();
		$uri = config($getter . '.url') . $url;
		$crawler = $client->request('GET', $uri);
		return $crawler;
	}
protected function getCrawler(int $year)
	{
		$getter = 'getters.uf.' . $this->getter;
		$url = str_replace('<year>', $year, config($getter . '.part'));
		try {
			$request = $this->client->request('GET', $url);
		} catch (ClientException $e) {
			return false;
		}

		if ($request->getStatusCode() != 200) {
			return false;
		}
		$client = new GClient();
		$uri = config($getter . '.url') . $url;
		$crawler = $client->request('GET', $uri);
		return $crawler;
	}
protected function getCrawler ( int $ year ) { $ getter = 'getters.uf.' . $ this -> getter ; $ url = str_replace ( '<year>' , $ year , config ( $ getter . '.part' ) ) ; try { $ request = $ this -> client -> request ( 'GET' , $ url ) ; } catch ( ClientException $ e ) { return false ; } if ( $ request -> getStatusCode ( ) != 200 ) { return false ; } $ client = new GClient ( ) ; $ uri = config ( $ getter . '.url' ) . $ url ; $ crawler = $ client -> request ( 'GET' , $ uri ) ; return $ crawler ; }
Gets the crawler for the web page according to the configuration file
@param int $year
@return boolean|\Symfony\Component\DomCrawler\Crawler
Gets the crawler for the web page according to the configuration file