Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑难] 设置好的采集机器人没办法采集,谁帮我看看

[复制链接]
ksoaban 发表于 2010-1-26 23:56:16 | 显示全部楼层 |阅读模式
SupeSite插件
插件名称: 自带采集器
插件简介: 自带采集器
语言编码: GBK简体 
插件作者: DZ
本帖最后由 ksoaban 于 2010-01-27 10:29 编辑

我自己根据教程添加了个采集机器人,测试都是正常的,为什么采集不到文章,哪位高手能帮我看看是什么问题吗?谢谢了

robot_梦诛17173.rar (1.46 KB, 下载次数: 115)


·.jpg
采集到这里就没反应了,说采集完成,不过一篇文章都没有
回复

使用道具 举报

 楼主| ksoaban 发表于 2010-1-27 09:40:10 | 显示全部楼层
有人知道吗
回复

使用道具 举报

guanjingla 发表于 2010-1-27 10:05:41 | 显示全部楼层
设置发帖提问啊。。
回复

使用道具 举报

火锅模板 发表于 2010-1-27 10:12:30 | 显示全部楼层
顶帖,我支持你,加油~~





_.jpg
回复

使用道具 举报

 楼主| ksoaban 发表于 2010-1-27 10:26:47 | 显示全部楼层
回复 3# guanjingla


   是哪个设置啊,能具体说一下吗
回复

使用道具 举报

 楼主| ksoaban 发表于 2010-1-27 11:10:18 | 显示全部楼层
谁帮忙看看啊 ,急呢,在线等
回复

使用道具 举报

 楼主| ksoaban 发表于 2010-1-27 13:31:07 | 显示全部楼层
((em:10))自己顶上去
回复

使用道具 举报

信宁军 发表于 2010-1-27 13:46:12 | 显示全部楼层
采集器本身没有什么问题
未命名.JPG
未命名2.JPG

这个实际上是你遇到了采集器刚采集就结束的问题

版主曾经给出过解决方案的
-------------------------------------------------------------------------------------------------------

在用SupeSite7采集信息的过程中会出现调试成功,但刚一采集就结束,采集不到任何内容的问题,现给出以下修改方案:
在supesite根目录下进入 admin 文件夹,找到admin_robots.php文件。
找到geturlfile函数:
  1. function geturlfile($url, $encode=1) {
  2.         global $thevalue, $_SCONFIG;

  3.         $text = '';
  4.         if(!empty($url)) {
  5.                 if(function_exists('file_get_contents')) {
  6.                         @$text = file_get_contents($url);
  7.                 } else {
  8.                         @$carr = file($url);
  9.                         if(!empty($carr) && is_array($carr)) {
  10.                                 $text = implode('',$carr);
  11.                         }
  12.                 }
  13.         }
  14.         $text = str_replace('·', '', $text);
  15.         if(!empty($thevalue['encode']) && $encode == 1) {
  16.                 if(function_exists('iconv')) {
  17.                         $text = iconv($thevalue['encode'], $_SCONFIG['charset'], $text);
  18.                 } else {
  19.                         $text = encodeconvert($thevalue['encode'], $text);
  20.                 }
  21.         }
  22.         return $text;
  23. }
复制代码
将此函数替换为:
  1. function geturlfile($url, $encode=1) {
  2.         global $thevalue, $_SCONFIG;

  3.         $text = '';
  4.         if(!empty($url)) {
  5.                 if(function_exists('file_get_contents')) {
  6.                         @$text = file_get_contents($url);
  7.                 } else {
  8.                         @$carr = file($url);
  9.                         if(!empty($carr) && is_array($carr)) {
  10.                                 $text = implode('',$carr);
  11.                         }
  12.                 }
  13.         }
  14.         
  15.         $text = str_replace('·', '', $text);
  16.         if(function_exists('iconv')) {
  17.                 $text = iconv($thevalue['encode'], $_SCONFIG['charset'].'//IGNORE', $text);
  18.         } else {
  19.                 $text = encodeconvert($thevalue['encode'], $text);
  20.         }
  21.         return $text;
  22. }
复制代码
回复

使用道具 举报

 楼主| ksoaban 发表于 2010-1-27 14:03:06 | 显示全部楼层
好的,很感谢{:2_120:}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-12 01:25 , Processed in 0.127429 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表