Parsing Links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fog2003
Forum Newbie
Posts: 1
Joined: Sun Nov 05, 2006 6:43 pm

Parsing Links

Post by fog2003 »

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:

Code: Select all

<p>&nbsp;Nov- 5&nbsp;&nbsp;&nbsp;<a href="http://milwaukee.craigslist.org/apa/230623373.html">$620 / 2br - 2 BR upper w/appliances & garage</a><font size="-1"> (Wauwatosa)</font></p>
Now how do I extract just the link so I can then extract the google maps address.

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You may find this interesting.
Post Reply