Open kylong opened 6 years ago
Hi.
this works for me
$image = $node->filter('img')->attr("src");
$image = file_get_contents($image);
$image = base64_encode($image);
$image = 'data:image/png;base64,' . $image;
`
Attention Required! | Cloudflare How to fix it?
@ngoviethung Well, this looks like the kind of response you get when the website blocks you by using the cloudflare bot protection system. If the website forbids bots, there is nothing you can do to make it work when using the goutte crawler
My crawler is getting data from this link
https://weban.jp/ljbtyp08/mjbtyp080814/
from February this year, so many countries are dined. Fortunately, its document still allows to get.
But Goutte returns 403 even tried and worked with curl and file_get_content.
Tried with many setting for Goutte: header, proxy
Proxy 1
Proxy 2
Header
is there any solution for it ? please help
Thank you