extract a specific part from a html document , php cURL , php, preg_match

Posted by user331071 on Stack Overflow See other posts from Stack Overflow or by user331071
Published on 2010-05-04T18:41:57Z Indexed on 2010/05/04 18:48 UTC
Read the original article Hit count: 826

Filed under:
|
|
|
|

Hello !

I'm trying to extract some information from a webpage using php cURL+preg_match or any other function but for some reasons it doesn't work at all . For example from this page http://www.foxtons.co.uk/search?location_ids=1001-29&property_id=712128&search_form=map&search_type=LL&submit_type=search I want to extract the title which is "4 bed house to rent, Caroline Place, Bayswater, W2", the price which is "2,300" and the description which starts at "This fantastic..." and ends at "(Circle and District Lines). " I tried to use php cURL + dom but I'm getting a lot of errors like this "htmlParseEntityRef: expecting ';' in Entity, line: 243" and no result displayed

Also I tried to use preg_match or preg_match_all but doesn't work either .

A very basic example would be highly appreciated !

thank you !

© Stack Overflow or respective owner

Related posts about php

Related posts about curl