Laravel'de yeni bir command olusturdum. Bununla bir bot kontrol ediyorum.
Web scrape yaptiktan sonra datayi kontrol etmek icin olusturdugum command i yazip terminal de scrape ettigim datayi gormek istiyorum.
Bunun icin ne yapabilirim?
$start_id = 4710000;
$url = 'https://sumai.tokyu-land.co.jp/bukken/detail/index/id/K'.$start_id;
$html = file_get_contents($url);
libxml_use_internal_errors(true);
$DOMParser = new \DOMDocument();
$DOMParser->loadHTML($html);
$getAllTable = $DOMParser->getElementsByTagName('table');
$MyTable = false;
json_encode($getAllTable);
$this->info('show data :- '.print_r($getAllTable,true));