Пример
Код (php!!!):
<?php
// Функция парсинга страницы
function parse_page($host, $path, $ref) {
$buf = "";
$so = fsockopen($host, 80, &$errno, &$errstr, 30);
fputs($so, "GET ".$path." HTTP/1.0\n".
"Host: ".$host."\n".
"Referer: ".$ref."\n".
"User-Agent: ".$_SERVER['HTTP_USER_AGENT']."\n\n");
while(fgets($so,2048)!="\r\n" && !feof($so));
unset($buf);
while(!feof($so)) $buf.=fread($so,2048);
fclose($so);
return $buf;
} // function parse_page()
header("Content-Type: text/html; charset=utf-8");
$host = "javascript.ru";
$path = "/";
$ref = "http://google.com/";
$page_text = parse_page($host, $path, $ref);
if(preg_match("/<span style=\"color\:#0A246A\">(.+?)<\/span>/usi", $page_text, $matches)) echo trim($matches[1]);
?>