curl - How to Get A Google Result Using PHP -
just clarify goal. type "who directed terminator 2?" google , @ top of page there box says james cameron etc. want information.
i have checked code , <div class="_ef">james cameron</div>
div want. can grab curl request , pick out div, it's quite slow. if want run multiple curl requests can cause relatively long wait times.
surely there more efficient way of achieving this?
i have tried looking google search api stuff , seem find custom search engine can place on web page. need able info php script while running.
use simple_html_dom , search in each div of page... can html of page file_get_contents()
, don't know if google approves it.
php curl
No comments:
Post a Comment