A
A
anriko2022-02-03 20:27:42
PHP
anriko, 2022-02-03 20:27:42

How to parse the id of songs in a group in vk?

How to parse song id in vk group?

wanted so but the entrance is only authorized

function curl_get($url, $referer = 'https://www.google.com') {// тип и URL являются обязательными, cookie не обязательны

  if (empty($url)) {
         return false;
     }
    echo "!!!!";
     $ch = curl_init();// Инициализируем curl
     curl_setopt($ch, CURLOPT_URL,$url);// Получить указанную веб-страницу
     curl_setopt($ch, CURLOPT_HEADER, 0);// Установить заголовок
     curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
     curl_setopt($ch, CURLOPT_USERPWD, "mail:pass");
     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0');
     curl_setopt($ch, CURLOPT_REFERER, $referer); // Имитация браузера, используемого пользователем
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     echo "!!!!";
     $data = curl_exec($ch);// Запускаем curl
     curl_close($ch);
     return  print_r($data);
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekssamos, 2022-02-03
@alekssamos

Take the ID and token from the mobile application and get it via the API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question