extract a specific part from a html document , php cURL , php, preg_match
- by user331071
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 !