<?
require 'global.php';
$title=$sitename;
$description=$description;
$id=$_GET["id"];
function intercept_str($str,$start,$end,$option){
$strarr=explode($start,$str);
$tem=$strarr[1];
if(empty($end)){
return $tem;
}else{
$strarr=explode($end,$tem);
if($option==1){
return $strarr[0];
}
if($option==2){
return $start.$strarr[0];
}
if($option==3){
return $strarr[0].$end;
}else{
return $start.$strarr[0].$end;
}
}
}
$start='<div class="warp">';
$end='<div class="footer">';
$openurl="http://www.mm8mm8.com/".$id;
$file = file_get_contents($openurl);
$file= intercept_str($file,$start,$end,2);
$keywords=substr(DeleteHtml(cut($file,'<h1>','</h1>')),0,200);
$file= '<div class="warp">'.$file;
$file=preg_replace('/<div class="so">(.+?)<\/div>/is','',$file);
$file=preg_replace('/<script(.+?)<\/script>/is','',$file);
$file=preg_replace('/<script(.+?)<\/script>/is','',$file);
$file=str_replace('<a href="/','<a href="http://127.0.0.1/meinv/',$file);
$file=str_replace('<img src="/uploads/','<img src="http://www2.ff369.com/mm8/',$file);
$file=str_replace('<img id="showPhoto" style="cursor:pointer;" src="/uploads/','<img id="showPhoto" style="cursor:pointer;" src="http://www2.ff369.com/mm8/',$file);
$start='/';
$end='/';
$bk= intercept_str($id,$start,$end,2);
$file=str_replace("<a href='","<a href='http://127.0.0.1/meinv".$bk."/",$file);
$file=str_replace($bk."/".$bk."/",$bk."/",$file);
$start='<div class="postion">';
$end='</div>';
$file1= intercept_str($file,$start,$end,2);
$file1=strip_tags($file1);
$file=preg_replace('/<div class="postion">(.+?)<\/div>/is',$file1,$file);
$file=preg_replace('/<div class="s">(.+?)<\/div>/is','',$file);
$file=str_replace(".html",".htm",$file);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $keywords." _ ".$title; ?></title>
<meta name="keywords" content="<?php echo $keywords; ?>,乱搜美女"></meta>
<meta name="description" content="<?php echo $description; ?>"></meta>
<link rel="stylesheet" href="http://127.0.0.1/meinv/images/css.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="http://127.0.0.1/meinv/images/global.css" type="text/css" media="screen"/>
</head><body>
<?php require'top.php'; ?>
<DIV><div style="width:1034px;margin:0 auto;margin-top:10px;margin-bottom:10px;">
<table width="1034px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="100%"><?php echo $file; ?></div></td>
</tr>
</table>
</div>
</DIV>
<?php
require 'stat.php';
require 'bottom.php';
?>
基于PHP的乱搜图片抓取采集源码.zip
版权申诉
142 浏览量
2023-10-15
23:47:24
上传
评论
收藏 110KB ZIP 举报
易小侠
- 粉丝: 6469
- 资源: 9万+
最新资源
- python开心麻花影视作品分析程序+源码.zip
- pythonExcel数据分析师程序+源码.zip
- PlatformUI.jar 支持RCP控件环境插件
- VB+ACCESS大型机房学生上机管理系统(源代码+系统).zip
- 基于BP神经网络的回归分析,基于优化动量因子的BP神经网络,基于优化学习率的BP神经网络,基于优化隐藏层神经元的bp神经网络
- python读取excel数据Python-file-reading-master.zip
- STC15单片机串口2使用程序例子
- 读取日志的excel生成周报 用python3开发weekplan-master.zip
- python 读取excel数据导入dbimport-data-master.zip
- K折交叉验证BP神经网络,多输入多输出BP神经网络(代码完整,数据齐全)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈