php curl download page after certain time -
i using below function download webpage using curl function works great.
currently downloading page site. problem using java script have countdown of 15 sec. possible download page after time (searched , brainstorm nothing work me)?
function curldll($target_url) { $ch = curl_init(); curl_setopt($ch, curlopt_useragent, 'mozilla/5.0 (windows nt 6.1; win64; x64; rv:25.0) gecko/20100101 firefox/25.0)'); curl_setopt($ch, curlopt_url,$target_url); curl_setopt($ch, curlopt_failonerror, true); curl_setopt($ch, curlopt_followlocation, true); curl_setopt($ch, curlopt_autoreferer, true); curl_setopt($ch, curlopt_returntransfer,1); curl_setopt($ch, curlopt_timeout, 100); $html= curl_exec($ch); return $html; }
since page using javascript timer load content not able curl can try phantomjs, headless webkit browser execute page , return dynamically assembled dom.
Comments
Post a Comment