I'm working on a project right now with PHP's built in functions and the help of Google Chrome developer's tools Copy Xpath functionality:
$html = file_get_contents($url); $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXPath($doc); $elements = $xpath->query('//*[@id="resultCount"]/span');