OJBK视频解析网站搭建教程首先安装Pytho。liux自带了pytho,widows请自行下载pytho。推荐Cetos7/Pytho2.7这时候,pip应该可以用了。如果不行,liux请按下面的命令安装pip:wgethttps://bootstrap.pypa.io/get-pip.py&&pythoget-pip.py/root目录下解压/gitcloe下源码:gitcloehttps://github.com/tagrela/ojbk_jiexi.git安装依赖库:cdojbk_jiexi&&pipistall-rrequiremet.txt创建一个logs目录:mkdirlogs创建数据库:mvcofig.sample.pycofig.py&&pythorebuildDB.py安装redis:建议先安装宝塔,然后直接用宝塔安装redis(ps.必须安装redis)网站目录下运行:guicor-w4-b0.0.0.0:5000ru:app
然后访问ip:5000试试如果不能访问,看看防火墙是否开了5000端口?
以上都是基本的安装。修改域名cofig.py中:
-`domai`:是你的网站域名,用于显示在前端-`mm2`:恋恋影视的最新域名-`por91`:91por的域名如果你需要使用MySQL修改cofig.py:注释第六行-->第五行开头#去掉,修改user、passwd、database
配置自启动修改supervisord.cof,将directory修改为脚本根目录echo"supervisord-c网站根目录/supervisord.cof">>/etc/rc.d/rc.localchmod+x/etc/rc.d/rc.local配置gix修改gix配置文件,添加server
server{liste80;server_amet.v4s0.us;#域名charsetutf-8;access_log/www/wwwlogs/t.v4s0.us.log;locatio/{proxy_passhttps://127.0.0.1:5000;proxy_redirectoff;proxy_set_headerHost$host:80;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;}locatio/(images|javascript|js|css|flash|media|static)/{root/root/tumblr_clawer/app/static;#目录修改好expires1d;}#error_page404/404.html;#redirectservererrorpagestothestaticpage/50x.html#error_page500502503504/50x.html;locatio=/50x.html{roothtml;}}2018-01-30更新支持Tumblr导出视频和图片
2018-02-04更新新增微博批量解析优化爬虫上线1.0反爬虫策略






评论