Answer the question
In order to leave comments, you need to log in
How can you sparse OZONE?
Good afternoon! It is necessary to display a list of goods with OZONE at home. The ozon seller API will not work. I wanted to try to parse some sections of OZONE. Tried on PHP, substituted different headers and cookies. But the answer is always Not Found. What could I be missing? How does the ozone parser mechanism work? How at least to receive in the answer HTML page of a site?
Answer the question
In order to leave comments, you need to log in
What is the problem?
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://www.ozon.ru/category/muzhskaya-odezhda-7542/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
$response;
dd($response);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question