<?php
error_reporting(0);
$str=file_get_contents("
http://wap.soso.com");
preg_match_all('/amp;sid=*(.*)&/i',$str,$si);
$g=$si[1][0];
$sid=explode('&',$g);
$get=$_GET['get'];
$co=file_get_contents('joke.txt');
$co=explode('|',$co);
$sh=count($co);
$shu=$sh-1;
$url="
http://k.soso.com/downing.jsp?dpath=novel%2F74%2F03%2F&sid={$sid[0]}&nn=%E7%BD%91%E6%B8%B8%E4%B9%8B%E5%A4%A9%E8%B0%B4%E4%BF%AE%E7%BD%97&ipos=0&from=list&type=txt&begin=320&size=101&pos=1&au=%E7%81%AB%E6%98%9F%E5%BC%95%E5%8A%9B&id=4225109483740338060&icfa=1304198&s=1&ind=1&md=6310535739446681253&ssid=011f2b33534f5108ff561d54534b8c5c&g_ut=1&end=9&key=%E7%BD%91%E6%B8%B8%E4%B9%8B%E5%A4%A9%E8%B0%B4";
if($get=='file'){
$dr=file_get_contents("$url");
preg_match_all('!【读个笑话解闷吧】(.*)更多!isU',$dr,$as);
$com=$as[1][0];
$fpt=fopen("joke.txt","a+");
$tim=$com."|\r\n";
fwrite($fpt,$tim,strlen($tim));
fclose("$fpt");
echo '本次采集到的笑话:';
echo '<font color=gray>';
echo $com;
echo '</font>';
echo "<br>现在采集了<font color=red>".$shu."</font>个笑话!";
echo '<br><a href=filejoke.php?get=file>点击继续采集!</a>';
}else{
$ss=$shu+1;
echo "已经采集了<font color=red>".$ss."</font>个笑话!";
echo '<br>确认采集?<a href=filejoke.php?get=file>是的!</a>';
}
include("top.php");
include("bottom.php");
?>
@DaMeng,你应该会改吧?
对于新手,抱歉了!介绍:
利用腾讯下载小说,随机笑话小偷。
自动获取sid。。
并存在joke.txt
其它没什么了!
真心喜欢虎绿
http://wdrw.ku50.net欢迎看看我的小站