australopitheque
New Member
I am currently building a scraper to scrape certain information from a website.For example, I would like to get a restaurant name, address, opening hours & telephone number from a website.By using curl, I managed to get the data from the website:\[code\] $url = "http://localhost/test.html"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = http://stackoverflow.com/questions/12746579/curl_exec($ch); curl_close($ch);\[/code\]However, I need some ideas on how would I be able to pin point my scraper to the exact location to scrape these information out.I have tried regular expressions, but was unable to get it to work.