protected static function getAttributes($url, array $config, $cacheDir)
	{
		$attributes = [];
		self::addNamedCaptures($attributes, $url, $config[0]);
		foreach ($config[1] as $scrapeConfig)
		{
			self::scrape($attributes, $url, $scrapeConfig, $cacheDir);
		}

		return $attributes;
	}
protected static function getAttributes($url, array $config, $cacheDir)
	{
		$attributes = [];
		self::addNamedCaptures($attributes, $url, $config[0]);
		foreach ($config[1] as $scrapeConfig)
		{
			self::scrape($attributes, $url, $scrapeConfig, $cacheDir);
		}

		return $attributes;
	}
protected static function getAttributes ( $ url , array $ config , $ cacheDir ) { $ attributes = [ ] ; self :: addNamedCaptures ( $ attributes , $ url , $ config [ 0 ] ) ; foreach ( $ config [ 1 ] as $ scrapeConfig ) { self :: scrape ( $ attributes , $ url , $ scrapeConfig , $ cacheDir ) ; } return $ attributes ; }
Return a set of attributes for given URL based on a site's config

@param  string      $url      Original URL
@param  array       $config   Site config
@param  string|null $cacheDir Path to the cache directory
@return array                 Associative array of attributes
Return a set of attributes for given URL based on a site s config