I am trying to use cURL to capture an external web page for posting on my own website, it is basically a “ladder” of a sports team, I contacted them, but they don’t have a ladder RSS feed, so I try to get the ladder by other means , is it possible to capture everything between <table> and </table> using cURL? I can capture the page I want using the following code, but I don't need anything but an HTML table.
$ch = curl_init ("http://www.sportingpulse.com/rpt_ladder.cgi?results=N&round=15&client=1-3909-47801-81021-6151461&pool=-1");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo $page = curl_exec($ch);
If someone can help me, it will be great. Thanks
Liane
source
share