欢迎光临
我们一直在努力

搭建一个会自动采集的小说站、ygbook1.4破解版安装教程(附采集规则)

逛网站是无意发现的这么一个小玩意,以后看视频再也不要花钱啦。。。好像本来看就不要钱。大家感兴趣的可以看看,做一个玩玩,超级简单,话不多说,先上图。

手机端:

 

搭建前端面板

首先就是咱们万变不离其宗,先搭建宝塔面板,root登录VPS输入:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh 

安装好后打开面板,安装LNMP环境:

之后我们添加一个网站,添加域名.数据库

 

将我们的源码上传到网站根目录,并解压,全选文件,赋予777权限

源码下载:链接:https://pan.baidu.com/s/12FFRWKXB4bEY7ZkdhgWQVg 密码:dbuj

 

打开网站-设置,配置网站伪静态

location / {
        if (!-e $request_filename){
                rewrite  ^(.*)$  /index.php?s=$1  last;   break;
        }
}

如下图:

打开域名,就可以看到安装界面。

将我们的数据库密码填入表格,即可安装成功:

安装完成后,就可以看到我们的后台了,当然这样还是没有结束的。接下来就是配置采集规则。

后台采集规则

这套程序是不能自己上传文章的,只能靠采集。

这里分享两条采集规则

PBTX采集规则

YTozOTp7czo0OiJvcGVuIjtzOjM6InllcyI7czo5OiJicmVha3BpY2siO3M6Mjoibm8iO3M6NToicHJveHkiO3M6MzoieWVzIjtzOjg6InBpY2xvY2FsIjtzOjM6InllcyI7czo3OiJwaWNhdHRyIjtzOjA6IiI7czo0OiJuYW1lIjtzOjE3OiJwYnR4dOmHh+mbhuinhOWImSI7czo0OiJjYXRlIjtzOjk6Im11bHRpY2F0ZSI7czo2OiJkb21haW4iO3M6MjA6Imh0dHA6Ly93d3cucGJ0eHQuY29tIjtzOjEwOiJ1cmxyZXBsYWNlIjtzOjA6IiI7czo3OiJjaGFyc2V0IjtzOjM6IkdCSyI7czo4OiJsaXN0X3VybCI7czozOToiaHR0cDovL3d3dy5wYnR4dC5jb20vW2NhdGVdL1twYWdlXS5odG1sIjtzOjE0OiJsaXN0X3VybF9leHRyYSI7czowOiIiO3M6OToibGlzdF9wYWdl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dGVyX29yZGVyIjtzOjM6InllcyI7czoxNjoiY2hhcHRlcl9vcmRlcm51bSI7czowOiIiO3M6MjE6ImNoYXB0ZXJjb250X3ByZWZpbHRlciI7czowOiIiO3M6MjA6ImNoYXB0ZXJjb250X3NlbGVjdG9yIjtzOjg6IiNjb250ZW50IjtzOjE1OiJjaGFwdGVyY29udF9wYXIiO3M6MDoiIjt9

我们导入第一个规则为例:

点击导入:

粘贴采集规则,按图设置:

采集测试一下(如果要批量采集请用下面的批量采集按钮)

可以看到采集成功了

之后你就可以用批量采集功能去采集了(这个采集源大概有1万8千本书,并且不断更新中)。

说明一下,采集的书并不会立刻进入数据库,只有用户访问时才会入库。

可能存在的问题

首先,采集规则请大家自己解读一下,其实很简单的,也可以自己编写

如果你使用上面的采集规则,你可能会发现打开分类目录网站会卡死,这个是规则的问题,这时你导入另外一条采集规则再采集应该就可以解决这个问题。

另外你可能发现网站首页和分类目录不显示内容,网页没有”撑开“,首先可能是你采集的太少了,首先采集1w以上数据、再等两到三天,这期间你自己可以多访问几本书,之后你可以在后台【数据区块】里面刷新一下区块数据,如果仍然不正常,这也可能是采集规则的问题,请大家最好还是自己编写吧。

 

赞(0)
未经允许不得转载:Derrick's blog » 搭建一个会自动采集的小说站、ygbook1.4破解版安装教程(附采集规则)
分享到: 更多 (0)

评论 7

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    :neutral: :neutral: :neutral:

    基本技能1年前 (2018-05-04)回复
  2. #2

    :razz: :razz: :razz:

    Derrick1年前 (2018-05-04)回复
  3. #3

    :grin: 没有成功……404访问错误,请问是什么情况……

    胡先生1年前 (2018-05-04)回复
  4. #4

    感谢分享

    丹心草1年前 (2018-05-04)回复
  5. #5

    :mrgreen: :mrgreen: :mrgreen:

    丹心草1年前 (2018-05-04)回复
  6. #6

    :arrow: :arrow: :arrow: :arrow:

    Derrick1年前 (2018-05-17)回复

知识改变命运,努力决定成败。

联系我们联系我们