Open hieuna opened 5 years ago
in goutte ^3.2
$client->getClient()->get('$image_link',['save_to' => '$save_dir.'.png', 'headers'=>['Referer'=>'www.123.com'] ]);
this function can save image with goutte i think your can try foreach to all images from html page by
$crawler->filter('#myDIV img' )->each(function ($sr){ return $sr->attr('src'); }) ;
and try with save function .
Hi there, Thanks for this tutorial. I just have a question, I want save all img Avatar post and All img detail post into the folder upload on server. Can you help me? Thanks.