Make parser of Bing, analogous to site [login to view URL], [login to view URL]
1. Bing parsing and creating cache pages in the subfolder with the name of keywords
2. from bing images: 10 references for original images and parsing thumbnails and substituting them in javascript (javascript code can be taken from [login to view URL])
2. the number of snippets can be all different from 10 (need to adjust headers)
4. External links to donors marking with Nofollow.
5. Need is also a function of Farsi transliteration to Latin.
6/ Separately, modify the function to parse Google in Farsi and other languages ​​differ from English.
//////Имеющиеся функции парсинга гугла
$input = file_get_contents("[login to view URL];ривет&hl=en&tbs=qdr:y&lr=&sa=X&tbo=1&num=22);
$regexp = "<div class=\"s\">(.*)<cite>";
if(preg_match_all("/$regexp/siU", $input, $matches, PREG_SET_ORDER)) {
$num_mas=0;
foreach($matches as $match) {
$text=$match[0];
$text=preg_replace('|<ul class=\"sp_pss\">(.*?)<\/ul>|Uis', '', $text);
$text=preg_replace('|<div class=\"sb_tsuf\">(.*?)<\/div>|Uis', '', $text);
$text=preg_replace('|<span class=\"f std\">(.*?)<\/span>|Uis', '', $text); //удаляем дату
$text=preg_replace('|<span class=\"f\">(.*?)<\/span>|Uis', '', $text); //удаляем дату
$text=strip_tags($text);
$vovels=array("'","·","♫",""","&"," ","...");
$text=str_replace($vovels," ",$text);
$text=ereg_replace("[^a-z,A-Z,0-9,_,.?!():; -/]","",$text);
//уменьшаем тошноту текста удалением кейворда из каждого 2-го снипета
$num_mas++;
$ost2=($num_mas%3);
//$ost3=($num_mas%3);
if ( ($ost2!==0) )//OR ($ost3!==0) )
{$text=str_replace ( ucwords(strtolower($keyword_z))," ",$text);
$text=str_replace($keyword_z," ",$text);}
$arr[]=$text;
};
};