Hello,
I would like to query and use the data returned from a google local search... For those who dont know the google local search this can be found here...
http://www.google.co.uk/local?hl=en&lr=&q=pizza&near=Colchester+CO3+9FA&sa=X&oi=localr
Using Lynx, I was able to get a text dump of the page
[1]Google Local
_______________________ _________________________________ Search
What
Where [_] Remember this location
Local Search within: [2]1 mile - [3]5 miles - 15 miles - [4]45
miles
Show only: [5]Pizza Delivery & Takeaway - [6]Takeaway Food
A. [7]1st & Always Sam's Pizzeria
01206 575555 5 Crouch St
Colchester, CO3 3EN
1.8 mi NE - [8]Directions
References: [9]the-business-search.co.uk - [10]2 more »
B. [11]Pizza Italia Plus
01206 545500 34a Mersea Rd
Colchester, CO2 7ES
1.9 mi E - [12]Directions
C. [13]Pizza Express plc
01206 760680 1 St. Runwald Street
Colchester, CO1 1AG
1.9 mi NE - [14]Directions
References: [15]bbc.co.uk - [16]2 more »
D. [17]Perfect Pizza
01206 546444 1 Middleborough
Colchester, CO1 1QS
2.0 mi NE - [18]Directions
References: [19]perfectpizza.co.uk
E. [20]Pizza Hut (UK) Ltd
01206 574478 48-50 High St
Colchester, CO1 1DH
2.0 mi NE - [21]Directions
.
.
.
etc
.
.
.
What I would like is a regex to extarct the Name,Telephone,Address and distance of each record returned
Any help would be really appricated.
Dan
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|