все чтото пишут пишут _)

мб кому то пригодится, ну как бы не идеал, но основные принципы парсига_)
PHP код:
<?
set_time_limit
(0);
  function 
post($url,$refer)
        {
       
$ch = curl_init($url);
      
curl_setopt($ch, CURLOPT_URL,$url);
       
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; dem 2010)");
       
curl_setopt($ch, CURLOPT_REFERER, $refer);
       
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
       
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       
$result  = curl_exec($ch);
           return 
$result;
        }

#2031 - всего статей , но рекомендую отрывками, ибо долго, некоторые #статьи по 2страницы, я это не учитывал, если надо, то всё просто_)
for ($ii=1;$ii<2031;$ii++)
{
$ce='http://arbuz.tj/'.$ii;
$result = post($ce,'http://www.arbuz.tj/');
preg_match('/<div class="Post">(.*?)<\/div>/is',$result, $n1);
#preg_match('/<div class="Nav">(.*?)/is',$result, $n2);
$ei= iconv("utf-8","windows-1251",$n1[1]);
 
$fh = fopen('bdd.txt', "a+");
          
$success - fwrite($fh, $ei."\r\n");
          
fclose($fh);
          
$end_result++;

sleep(8);
}

?>