Goutteをいろいろいじったので備忘録。 classが2つあるタグを取得するhtml : <div class=”class1 class2″> php : $crawler->filter(‘div.class1.class1’); idを指定で指定するhtml : <div id=”hello”> php : $crawler->filter(‘div#hello’); Imgタグのsrcを取得html : <img src=”http://reafo.net/image.png”> php : $crawler->filter(‘img’)->attr(‘src’); htmlのタグごと取得するhtml : <div class=”catchMeIfYouCan”><span id=”hello”>てきすと</span>ですよ</div> php : $crawler->f
![Goutte スクレイピング解析時のスニペットメモ](https://cdn-ak-scissors.b.st-hatena.com/image/square/66f5db8dc6f2ab28e3de46a270ff2ce305a41434/height=288;version=1;width=512/http%3A%2F%2Freafo.net%2Fx_room%2Fwp3%2Fwp-content%2Fuploads%2F2014%2F01%2Feyechatch1.png)