Parsing Links
Posted: Sun Nov 05, 2006 6:51 pm
Hi guys. I'm making a little script that will query craigslist for apartments that meet my search criteria and then pass it onto google maps and map them out. There already is a site like this but it doesn't include Milwaukee. So basically I have a file that lists the links to the apartments I am interested in but it is in this format:
Now how do I extract just the link so I can then extract the google maps address.
Thanks
Code: Select all
<p> Nov- 5 <a href="http://milwaukee.craigslist.org/apa/230623373.html">$620 / 2br - 2 BR upper w/appliances & garage</a><font size="-1"> (Wauwatosa)</font></p>Thanks