D
D
dsuvorov2021-01-13 15:43:05
PHP
dsuvorov, 2021-01-13 15:43:05

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

1 answer(s)
T
Tim, 2021-01-13
@dsuvorov

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);

5ffefb355e0b9442479343.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question