All good. I'm trying to parse Yandex Wordstat. After an attempt to authorize, he will issue a form where he asks for a phone number associated with the account. How to bypass this form, log in and take statistics? Maybe for these purposes you can use the API?

F-Ia authorization

function auth($url,$login,$passwd,$cookie_box,$idkey,$retpath,$timestamp,$twoweeks,$In) { $common_yandex = curl_init('https://passport.yandex.ru/passport?mode=auth'); curl_setopt($common_yandex, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($common_yandex, CURLOPT_POST, 1); curl_setopt($common_yandex, CURLOPT_POSTFIELDS,"login=$login&passwd=$passwd"); curl_setopt($common_yandex, CURLOPT_HEADER, 0); curl_setopt($common_yandex, CURLOPT_RETURNTRANSFER, 1); curl_setopt($common_yandex, CURLOPT_COOKIEJAR, $cookie_box); curl_setopt($common_yandex, CURLOPT_FOLLOWLOCATION, 1); $html = curl_exec($common_yandex); return $html; } 

    0