PHP

DOM - DOMDocument::getElementById
function HomepageLaden($url, $postdata)
{
$agent = "Meine Browserkennung v1.0 :)";
$header[] = "Accept: text/vnd.wap.wml,*.*";
$ch = curl_init($url);

if ($ch)
{
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,    CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,    CURLOPT_USERAGENT, $agent);
curl_setopt($ch,    CURLOPT_HTTPHEADER, $header);
curl_setopt($ch,    CURLOPT_FOLLOWLOCATION, 1);


if (isset($postdata))
{
curl_setopt($ch,    CURLOPT_POST, 1);
curl_setopt($ch,    CURLOPT_POSTFIELDS, $postdata);
}

$tmp = curl_exec ($ch);
curl_close ($ch);
}
return $tmp;
}
$_url = "http://domain.tld/site.html";
$_buffer = HomepageLaden($_url, "");

$dom = new DOMDocument();
$dom->loadHTML($_buffer);

// Adresse
$divNode = $dom->getElementById('profil_name_adresse');
echo $divNode->childNodes;