
24.06.2007, 23:32
|
|
Флудер
Регистрация: 20.11.2006
Сообщений: 3,316
Провел на форуме: 16641028
Репутация:
2371
|
|
1)
PHP код:
<?php
set_time_limit(0);
function gogo($query)
{
$fileLink ="outfile.txt";
$fout = fopen($fileLink,"w+");
$query = rawurlencode($query);
$end = 0;
$step = 0;
while(!$end)
{
$html = file_get_contents("http://gogo.ru/web?&q=$query&sf=$step`");
$tmp = explode("width=\"90%\"><a href=\"",$html);
for ($i = 1; $i < count($tmp); $i++)
{
$a = explode("\"",$tmp[$i]);
$out[] = $a[0];
fwrite($fout,$a[0]."\r\n");
}
if (!eregi("Далее ",$html))
{
return $out;
}
$step = $step + 10;
echo "Записано $step записей <br>";
@ob_flush();
sleep(2);
}
}
$sringq="Killer Guestbook 0.1";
$rezult = gogo($sringq);
?>
Записывает в файл
Код:
http://softsearch.ru/programs/140-553-killer-guestbook-download.shtml
http://www.woweb.ru/load/55-1-0-1410
http://webforus.com.ru/w/scr/?id=127
http://www.internet-technologies.ru/scripts/script_802.html
http://softobzor.ru/alfovite/script/K.html
http://www.phpclub.ru/?m=app&s=35
http://inattack.ru/program/215.html
http://exsoft.org/2006/05/22/print:page,1,2652_php_script.html
http://rasta0.fromru.com/
http://www.webrelax.com/all/19-2-2006
http://softsearch.ru/programs/140-553-killer-guestbook-download.shtml
http://www.woweb.ru/load/55-1-0-1410
http://webforus.com.ru/w/scr/?id=127
http://www.internet-technologies.ru/scripts/script_802.html
http://softobzor.ru/alfovite/script/K.html
http://www.phpclub.ru/?m=app&s=35
http://inattack.ru/program/215.html
http://exsoft.org/2006/05/22/print:page,1,2652_php_script.html
http://rasta0.fromru.com/
http://www.webrelax.com/all/19-2-2006
http://softsearch.ru/programs/140-553-killer-guestbook-download.shtml
http://www.woweb.ru/load/55-1-0-1410
http://webforus.com.ru/w/scr/?id=127
http://www.internet-technologies.ru/scripts/script_802.html
http://softobzor.ru/alfovite/script/K.html
http://www.phpclub.ru/?m=app&s=35
http://inattack.ru/program/215.html
http://exsoft.org/2006/05/22/print:page,1,2652_php_script.html
http://rasta0.fromru.com/
http://www.webrelax.com/all/19-2-2006
http://softsearch.ru/programs/140-553-killer-guestbook-download.shtml
http://www.woweb.ru/load/55-1-0-1410
http://webforus.com.ru/w/scr/?id=127
http://www.internet-technologies.ru/scripts/script_802.html
http://softobzor.ru/alfovite/script/K.html
http://www.phpclub.ru/?m=app&s=35
http://inattack.ru/program/215.html
http://exsoft.org/2006/05/22/print:page,1,2652_php_script.html
http://rasta0.fromru.com/
http://www.webrelax.com/all/19-2-2006
Вывел:
Записано 10 записей
Записано 20 записей
Записано 30 записей
Записано 40 записей
2) Парсить ссылки
|
|
|