I need php code for bulk google "did you mean: ..." results
On google when I type workexperience google says "did you mean: work experience". Or type studenthomes and google will say "Did you mean: student homes".
This is a perfect feature. I want to use this feature in bulk. Do you think you can help me on this?
If it makes your job easier, some time ago Dan had written a php code for bulk google searches to count the number of search results. Maybe you can convert this code to show the words after "did you mean:" part.
On google when I type workexperience google says "did you mean: work experience". Or type studenthomes and google will say "Did you mean: student homes".
This is a perfect feature. I want to use this feature in bulk. Do you think you can help me on this?
If it makes your job easier, some time ago Dan had written a php code for bulk google searches to count the number of search results. Maybe you can convert this code to show the words after "did you mean:" part.
PHP:
<?php
$file = file('path/to/your/list/of/words/to/search/for.txt');
$results = '';
foreach ($file as $line) {
$data = file_get_contents("http://www.google.com/search?hl=en&q=" . urlencode($line) . "&btnG=Google+Search");
preg_match('/of about <b>([0-9,]*)?<\/b>/si', $data, $number);
$results .= $line . " " . $number[1] . "\n";
}
echo $results;
?>





