Webnet Official Crawler
Remember spaces between keywords are not allowed, try special characters like /, _, %20%, +
Go Back
array('method'=>"GET", 'headers'=>"User-Agent: MEGABot/0.1\n"));
$context = stream_context_create($options);
$doc = new DOMDocument();
@$doc->loadHTML(@file_get_contents($s_link, false, $context));
$s_title = $doc->getElementsByTagName("title");
$s_title = $s_title->item(0)->nodeValue;
$s_des = "";
$s_key = "";
$metas = $doc->getElementsByTagName("meta");
for ($i = 0; $i < $metas->length; $i++) {
$meta = $metas->item($i);
if (strtolower($meta->getAttribute("name")) == "description")
$s_des = $meta->getAttribute("content");
if (strtolower($meta->getAttribute("name")) == "keywords")
$s_key = $meta->getAttribute("content");
}
/* echo 'title: