可锐资源网

技术资源分享平台,提供编程学习、网站建设、脚本开发教程

zblog(泛目录)二开Python版

zblog(泛目录)二开Python版,这款是新升级的,我这有多款zblog二开程序,采集版,ai版本,干扰符版本

登陆后台:http://你的域名/zb_system/login.php

admin

Aa123456

伪静态:

if (-f $request_filename/index.html){

rewrite (.*) $1/index.html break;

}

if (-f $request_filename/index.php){

rewrite (.*) $1/index.php;

}

rewrite ^/image/(.*).(jpg|png)/fan/data/image/ /fan/data/image//fan/data/image/1.$2 last;

rewrite ^/article/(\d+).html$ /index.php last;

rewrite ^/c/caiji.html/fan/2.php?path= /fan/2.php?path=/fan/2.php?path=1&id=$2 last;

rewrite ^/(.)/(.).html/fan/1.php?path= /fan/1.php?path=/fan/1.php?path=1&id=$2 last;

rewrite ^/([a-zA-Z0-9]+)/fan/1.php?path= /fan/1.php?path=/fan/1.php?path=1&id=$2 last;

if (!-f $request_filename){

rewrite (.*) /index.php;

}

自己的关键字放在

/fan/ci.txt

泛内容模板修改在

/fan/muban

fabu_api.php----这是采集新闻热点脚本直接采集进zb数据库(计划1分钟以上)

设置计划任务访问URL-访问:http://你的域名/fabu_api.php?auth=hz

fan/data/xinwen.py----这是泛内页Python新闻采集脚本(解决以前垃圾脚本速度以及采集不到问题,以及吃CPU服务器卡死爆红问题,速度嘎嘎快)

/fan/data 文件夹权限权限设置775

(以上命令你服务器没有Python请按顺序执行这个命令)

yum install epel-release

yum install python3 python3-pip

pip3 install "beautifulsoup4<4.12.0"

pip3 install chardet

pip3 install requests

设置计划任务:shell脚本

脚本内容:cd /www/wwwroot/你的宝塔域名路径/fan/data && python3 xinwen.py

注意说明(可忽略):

pip3 install beautifulsoup4 ———-3.7版本以上用

pip3 install "beautifulsoup4<4.12.0" ———-3.7版本以下用

泛内页广告设置:

根目录下fan/502.php放跳转代码

将根目录下fan/1.php中的include 'gfw.php'; 第二行前的//注释去掉即可跳转

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言