baidu风云榜_数据 作者 wunengwu 日期 2009-2-27 11:24:00
-
<?php
-
-
//mysql_connect("localhost","root","");
-
//mysql_select_db(’baidu’);
-
-
‘上升最快’,
-
-
‘一周热点’,
-
-
‘热门搜索’,
-
-
‘电影’,
-
-
‘电视剧’,
-
-
‘游戏’,
-
-
‘小说’,
-
-
‘体育热点’,
-
-
‘电视节目’,
-
-
‘动漫卡通’,
-
-
‘美女’,
-
-
‘帅哥’,
-
-
‘娱乐女明星’,
-
-
‘娱乐男明星’,
-
-
‘女歌手’,
-
-
‘男歌手’,
-
-
‘人物’,
-
-
‘富豪’,
-
-
‘汽车’,
-
-
‘数码产品’,
-
-
‘上市公司’,
-
-
‘基金’,
-
-
‘化妆品品牌’,
-
-
‘畅销书’,
-
-
‘高校’,
-
-
‘宠物’,
-
-
‘软件’,
-
-
‘风景名胜’
-
);
-
-
-
-
‘http://top.baidu.com/top10.html’,
-
-
‘http://top.baidu.com/weekhotspot.html’,
-
-
‘http://top.baidu.com/top_keyword.html’,
-
-
‘http://top.baidu.com/movie.html’,
-
-
‘http://top.baidu.com/tv.html’,
-
-
‘http://top.baidu.com/game.html’,
-
-
‘http://top.baidu.com/book.html’,
-
-
‘http://top.baidu.com/sport.html’,
-
-
‘http://top.baidu.com/dianshi.html’,
-
-
‘http://top.baidu.com/katong.html’,
-
-
‘http://top.baidu.com/girls.html’,
-
-
‘http://top.baidu.com/boys.html’,
-
-
‘http://top.baidu.com/ymingxing.html’,
-
-
‘http://top.baidu.com/nmingxing.html’,
-
-
‘http://top.baidu.com/ygeshou.html’,
-
-
‘http://top.baidu.com/ngeshou.html’,
-
-
‘http://top.baidu.com/renwu.html’,
-
-
‘http://top.baidu.com/rich.html’,
-
-
‘http://top.baidu.com/car.html’,
-
-
‘http://top.baidu.com/shuma.html’,
-
-
‘http://top.baidu.com/company.html’,
-
-
‘http://top.baidu.com/jijin.html’,
-
-
‘http://top.baidu.com/hzp.html’,
-
-
‘http://top.baidu.com/shu.html’,
-
-
‘http://top.baidu.com/school.html’,
-
-
‘http://top.baidu.com/pet.html’,
-
-
‘http://top.baidu.com/soft.html’,
-
-
‘http://top.baidu.com/fengjingmingsheng.html’
-
);
-
-
foreach($array1 as $key=>$value) {
-
-
-
preg_match_all(‘|<tr> <td align="center"><strong>([^<]+)</strong></td> <td><a href="([^>]+)" target="_blank">([^<]+)</a></td> <td class="ff2">([^<]+)</td> <td class="ff2">([^<]+)</td> <td class="ff2">([^<]+)</td> <td class="ff2">([^<]+)</td> <td align="left">|si’, $content, $array);
-
-
-
preg_match_all(‘|<tr> <td align="center"><strong>([^<]+)</strong></td> <td><a href="([^>]+)" target="_blank">([^<]+)</a></td> <td class="ff2"><img src="/img/ico_up.gif">([^<]+)</td> <td class="ff2">([^<]+)</td> <td class="ff2">([^<]+)</td> <td class="ff2">([^<]+)</td> <td align="left">|si’, $content, $array);
-
}
-
foreach($array[1] as $key=>$value){
-
//mysql_query("insert into baidu_log set sort=’$value’,add_time=NOW(),keywords=’".$array[3][$key]."’,jinri=’".$array[4][$key]."’,lishi=’".$array[5][$key]."’,top_tianshu=’".$array[6][$key]."’,ri_pingjun=’".$array[7][$key]."’,main_id=’$main_id’");
-
echo "insert into baidu_log set sort=’$value’,add_time=NOW(),keywords=’". $array[3][$key]. "’,jinri=’". $array[4][$key]. "’,lishi=’". $array[5][$key]. "’,top_tianshu=’". $array[6][$key]. "’,ri_pingjun=’". $array[7][$key]. "’,main_id=’$main_id’\n";
-
-
}
-
}
-
-
-
ClearSpace($document)
-
{
-
-
//$document = str_replace("’",’"’,$document);
-
-
return $document;
-
}
-
?>
|
载入中...
About Me
载入中...
Category
载入中...
newlog
载入中...
Recent Comments
Recent Message
载入中...
Links
Search
载入中...
Statistics
载入中... |