smilesmile
New Member
I need to extract some additional information from Google Images results and am not sure how to go about it.
On the Google image results page each image generates a url like this:
href="http://www.google.com/imgres?imgurl...BQ&tbm=isch&ved=0CDQQMygCMAI&biw=1366&bih=631"
I need to extract the values for these parameters:
imgurl=
imgrefurl=
tbnid=
And finally, is there a way to extract the filetype of the image into a variable as well (jpg, png, etc)? Something like $filetype?
So for the final result I would like stored on each line:
$query;$loop.count;$imgurl;$imgrefurl;$tbnid.$filetype\n
On the Google image results page each image generates a url like this:
href="http://www.google.com/imgres?imgurl...BQ&tbm=isch&ved=0CDQQMygCMAI&biw=1366&bih=631"
I need to extract the values for these parameters:
imgurl=
imgrefurl=
tbnid=
And finally, is there a way to extract the filetype of the image into a variable as well (jpg, png, etc)? Something like $filetype?
So for the final result I would like stored on each line:
$query;$loop.count;$imgurl;$imgrefurl;$tbnid.$filetype\n