php - cURL- how to submit youtube captcha using cURL -
i have php code youtube captcha when submit captcha nothing happen.
<?php $ch = curl_init(); curl_setopt($ch, curlopt_url, 'http://www.youtube.com/das_captcha?next=/'); curl_setopt($ch, curlopt_nobody, false); curl_setopt($ch, curlopt_cookiejar, 'session.ck'); curl_setopt($ch, curlopt_returntransfer, false); curl_setopt($ch, curlopt_followlocation, false); curl_setopt($ch, curlopt_timeout, 45); curl_setopt($ch, curlopt_useragent, 'mozilla/5.0 (x11; u; linux i686; en-us; rv:1.9.2.13) gecko/20101206 ubuntu/10.04 (lucid) firefox/3.6.13 gtb7.1'); $a = curl_exec($ch); if(preg_match('#location: (.*)#', $a, $r)){ $l = trim($r[1]); } ?> can advise me
you don't. whole point of captcha limit access humans using web browsers , block automated tools 1 appear trying write.
use the apis provided instead.
Comments
Post a Comment