/ Published in: PHP
URL: http://www.barattalo.it/2010/03/30/php-google-images-mini-bot/
This simply php function will retrieve the links of the images from Google Images searched with a keyword. The function just calls images.google.it and parse the html to find the url of the images, in this case the urls are stored in the javascript, so the parsing doesn’t use any html tag to find data. It builds an array of urls and return it.
Expand |
Embed | Plain Text
function getGoogleImg($k) { $url = "http://images.google.it/images?as_q=##query##&hl=it&imgtbs=z&btnG=Cerca+con+Google&as_epq=&as_oq=&as_eq=&imgtype=&imgsz=m&imgw=&imgh=&imgar=&as_filetype=&imgc=&as_sitesearch=&as_rights=&safe=images&as_st=y"; for($i=0;$i<count($m);$i++) { } return $x; }
You need to login to post a comment.
