request('GET', 'https://www.yamap16.com/Board/List.aspx?id=free&ca=1'); $html = $response->getBody()->getContents(); $crawler = new Crawler($html); // 모든 이미지의 src 속성 가져오기 $crawler->filter('img')->each(function (Crawler $node) { echo $node->attr('src') . "\n"; }); //file_put_contents("test.txt", var_export($crawler, true)); } catch (\Exception $e) { echo $e->getMessage(); } } }