Answer the question
In order to leave comments, you need to log in
How to parse a photo from a site, maybe with JSON?
https://becompact.ru/tovary/noutbuk-msi-gp63-leopa...
This is a product link, the product has a photo in the slider, slick slider,
$images = $pw->find('div.photos > div.slider-for3 div.slick-list.draggable div.slick-track > div.item');
echo $images;
$json = file_get_contents('url');
$array = json_encode($json);
print_r($array);
Answer the question
In order to leave comments, you need to log in
hint: it makes no sense to look at the rendered html, look at the source of the page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question