mcncc 发表于 2009 年 1 月 14 日 13:09:11

【规则】杰奇小说采集起点规则

转至:http://mcncc.com/html/demo/jieqi/2009/0114/46.html

复制规则另存为site_qidianaa.php


以下为规则的内容:

<?php
$jieqiCollect['sitename'] = '新起点';
$jieqiCollect['siteurl'] = 'http://qidian.com/';
$jieqiCollect['subarticleid'] = '';
$jieqiCollect['subchapterid'] = '';
$jieqiCollect['proxy_host'] = '';
$jieqiCollect['proxy_port'] = '';
$jieqiCollect['autoclear'] = '0';
$jieqiCollect['defaultfull'] = '0';
$jieqiCollect['referer'] = '0';
$jieqiCollect['pagecharset'] = 'auto';
$jieqiCollect['urlarticle'] = 'http://qidian.com/Book/<{articleid}>.aspx';
$jieqiCollect['articletitle']['left'] = '起点中文网《';
$jieqiCollect['articletitle']['right'] = '》';
$jieqiCollect['articletitle']['middle'] = '!!!!';
$jieqiCollect['author']['left'] = '》,小说作者:';
$jieqiCollect['author']['right'] = ',小说类别';
$jieqiCollect['author']['middle'] = '!!!!';
$jieqiCollect['sort']['left'] = '<strong>小说大类:</strong>';
$jieqiCollect['sort']['right'] = '</td>';
$jieqiCollect['sort']['middle'] = '!!!!';
$jieqiCollect['keyword']['left'] = '小说关键字:</strong>';
$jieqiCollect['keyword']['right'] = '<br />';
$jieqiCollect['keyword']['middle'] = '!!!!';
$jieqiCollect['intro']['left'] = 'break-word;">';
$jieqiCollect['intro']['right'] = '<br />';
$jieqiCollect['intro']['middle'] = '****';
$jieqiCollect['articleimage']['left'] = '"';
$jieqiCollect['articleimage']['right'] = '" width="120px" height="150px" border="0" alt="';
$jieqiCollect['articleimage']['middle'] = '!!!!';
$jieqiCollect['filterimage'] = '';
$jieqiCollect['indexlink']['left'] = '<a href="../BookReader/';
$jieqiCollect['indexlink']['right'] = '.aspx"><img src="../Images/Book/new_an1.gif" border="0" alt="点击阅读" />';
$jieqiCollect['indexlink']['middle'] = '$$$$';
$jieqiCollect['fullarticle'] = '写作进程:</strong>已完成</td>';
$jieqiCollect['sortid']['玄幻魔法'] = '1';
$jieqiCollect['sortid']['武侠修真'] = '2';
$jieqiCollect['sortid']['都市言情'] = '3';
$jieqiCollect['sortid']['历史军事'] = '4';
$jieqiCollect['sortid']['侦探推理'] = '5';
$jieqiCollect['sortid']['网游动漫'] = '6';
$jieqiCollect['sortid']['科幻小说'] = '7';
$jieqiCollect['sortid']['恐怖灵异'] = '8';
$jieqiCollect['sortid']['散文诗词'] = '9';
$jieqiCollect['sortid']['其他类型'] = '10';
$jieqiCollect['urlindex'] = 'http://www.qidian.com/BookReader/<{articleid}>.aspx';
$jieqiCollect['volume']['left'] = '<div class=\'chat\'><b>';
$jieqiCollect['volume']['right'] = '</strong>';
$jieqiCollect['volume']['middle'] = '!!!!';
$jieqiCollect['chapter']['left'] = '更新时间:~~~~\'> ';
$jieqiCollect['chapter']['right'] = '</a>';
$jieqiCollect['chapter']['middle'] = '!!!!';
$jieqiCollect['chapterid']['left'] = 'class=\'chaptertd\'><a href=\'$$$$,';
$jieqiCollect['chapterid']['right'] = '.aspx\' class=\'BookName\'';
$jieqiCollect['chapterid']['middle'] = '****';
$jieqiCollect['urlchapter'] = 'http://www.qidian.com/BookReader/<{articleid}>,<{chapterid}>.aspx';
$jieqiCollect['content']['left'] = '<div id="content" align="left">';
$jieqiCollect['content']['right'] = '</div>';
$jieqiCollect['content']['middle'] = '****';
$jieqiCollect['contentfilter'] = '';
$jieqiCollect['contentreplace'] = '';
$jieqiCollect['collectimage'] = '1';
$jieqiCollect['imagetranslate'] = '0';
$jieqiCollect['addimagewater'] = '0';
$jieqiCollect['imagebgcolor'] = '';
$jieqiCollect['imageareaclean'] = '';
$jieqiCollect['imagecolorclean'] = '';
$jieqiCollect['listcollect']['0']['title'] = '全本小说';
$jieqiCollect['listcollect']['0']['urlpage'] = 'http://www.qidian.com/Book/BookStore.aspx?Type=1';
$jieqiCollect['listcollect']['0']['articleid']['left'] = 'new Book(\'';
$jieqiCollect['listcollect']['0']['articleid']['right'] = '\',\'';
$jieqiCollect['listcollect']['0']['articleid']['middle'] = '$$$$';
$jieqiCollect['listcollect']['0']['startpageid'] = '';
$jieqiCollect['listcollect']['0']['nextpageid'] = '++';
$jieqiCollect['listcollect']['0']['maxpagenum'] = '';
?>
然后上载到 /configs/article/目录里
修改 collectsite.php
在结尾增加下面的代码

以下为引用的内容:

$jieqiCollectsite['12']['name'] = '新起点';
$jieqiCollectsite['12']['config'] = 'qidianaa';
$jieqiCollectsite['12']['url'] = 'http://qidian.com/';
$jieqiCollectsite['12']['subarticleid'] = '';
$jieqiCollectsite['12']['enable'] = '1';

loveni 发表于 2009 年 1 月 14 日 14:32:53

http://www.jgwy.net/attachment.php?aid=6439953&k=861d4e4416f75b20fe1fde3c61a2cdbf&t=1226681664&noupdate=yes

kgroup 发表于 2009 年 1 月 14 日 16:29:24

很不错的说   多谢多谢

kgroup 发表于 2009 年 1 月 14 日 16:37:43

出现错误!

错误原因:读取对方网站失败,可能是对方无法访问或者本服务器禁止远程读取网页!
URL: http://www.qidian.com/Book/BookStore.aspx?Type=1

请 返 回 并修正


不知道为什么一直出现这个错误呢?

mcncc 发表于 2009 年 1 月 14 日 16:39:19

空间PHP配置的原因

kgroup 发表于 2009 年 1 月 14 日 16:46:13

允许使用URL打开文件 allow_url_fopen YES   配置应该没问题吧

华山三少 发表于 2009 年 1 月 14 日 22:13:31

什么东东

hkgogogo 发表于 2009 年 1 月 14 日 23:40:23

不會
页: [1]
查看完整版本: 【规则】杰奇小说采集起点规则