12Oct/0911
Scraping Google Local Business Results
Hey zero, Do you have a method to scrape google local business results and see where a listing appears in a) the 7-pack or b) the full listings for certain search terms? WP (from here)
Get Google SERP and preg match local business results with
$page = file_get_contents('http://www.google.com/search?q=new+york+pizza'); preg_match_all( '@<h4[^>]*class=r[^>]*>\s*<a\s*href="(.*)".*class=l.*title="(.*)".*>@siU', $page, $matches); print_r($matches[1]); // urls print_r($matches[2]); // titles
Then preg match regular listings (I hope regex works) and go through both $matches, local and regular.
HTH
October 12th, 2009 - 13:26
what is the use of scarping business results? Share us some secret trick behind that
October 13th, 2009 - 04:50
If you are scraping for search results it should be easy to figure out.
October 18th, 2009 - 18:09
Nice to see your blog about make money
October 18th, 2009 - 20:12
Why is scraping necessary? Please post more info about it. Thanks!
October 20th, 2009 - 00:51
Scraping local business results would be a good idea if you are doing seo for any company who cares about local business rankings. There could also be other reasons for this. It would be a good way for an seo company to find potential clients.
October 20th, 2009 - 04:33
Interesting code, looking at it, it would seem to need a little bit more before it becomes automated? Just by looking at the first line in the code, it seems to be kinda of manual search inputs at the moment. But I could be wrong… still though… it’s a great start for the person who requested it.
Till then,
Jean
December 14th, 2009 - 09:17
What is the importance of scrape google local business results?How does it reflect to your site and Affect to the SEO?Can anyone provide valuable information about the codes?
March 2nd, 2010 - 00:54
If you can’t find the use of this script then move on. I found a pretty decent use for it though
thanks.
July 5th, 2010 - 20:05
Hi Zero,
Any way of extending this so can pull back the maps url as well?
July 9th, 2010 - 14:33
Need to check this
July 13th, 2010 - 13:39
Thanks Zero, good to hear you’re still in the game! WP