摘要: 1、爬取ajax请求的数据(循环): 2、忽略证书问题: 3、proxy代理: 1) 自己创建build_opener对象,调用open方法: 2) 代理ip:防止自己的ip被封 : 4、cookies: 1)、使用自己登录的cookies: 2)、使用写代码登录的cookies: 3)、使用coo 阅读全文
posted @ 2019-01-23 18:09 fangsheng420 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1、爬虫介绍: 2、第一个爬虫程序: 3、Request请求信息: 4、random中choice: 5、get请求之中文处理: 6、爬取贴吧: 7、post请求之登录: 阅读全文
posted @ 2019-01-23 17:30 fangsheng420 阅读(118) 评论(0) 推荐(0) 编辑
摘要: python与MongoDB交互的代码: 阅读全文
posted @ 2019-01-23 16:45 fangsheng420 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 模糊查询: 1、db.person.find({"name":/大/}):name含有'大'的记录; 2、db.person.find({"name":/^大/}):name以'大'开头的记录; 3、db.person.find({"name":/大$/}):name以'大'结束的记录; 4、c = 阅读全文
posted @ 2019-01-23 16:42 fangsheng420 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1、MongoDB的集合(表): 1)、数据库操作: 创建数据库:use 数据库名 查看所有数据库:show dbs 删除数据库:use 数据库 db.dropDatabase() 查看当前数据库:db 2)、集合操作: 创建集合:db.createCollection("集合名") 查看集合:sh 阅读全文
posted @ 2019-01-23 16:39 fangsheng420 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 1、MongoDB的介绍: 2、MongoDB的基本概念: 阅读全文
posted @ 2019-01-23 16:30 fangsheng420 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 软件安装和管理 软件包 1、bin文件 .bin (适合所有Linux发行版) ,bin是可以执行文件。 2、rpm包(.rpm) ,yum(redhat系列==centos) 3、源码压缩包 (适合所有的Linux发行版) 4、官方已经编译好的,下载软件包直接可以使用(window下的绿色软件) 阅读全文
posted @ 2019-01-23 16:05 fangsheng420 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 0. 不正常关闭是,会产生一个XXX.swp文件,删除这个文件时就可以的啦!! rm .profile.swp 1. 查看有关tomcat的所有服务:netstat -tpln | grep java 2. 47.107.57.99 公(xshell连接,tomcat访问都是这个,http://47 阅读全文
posted @ 2019-01-23 15:22 fangsheng420 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 1、下载 rpm 的 mysql 5.7.23 : 2、解压 mysql-5.7.23-1.el7.x86_64.rpm-bundle.tar:解压后有12个rpm文件 tar xvf mysql-5.7.23-1.el7.x86_64.rpm-bundle.tar /usr/java/mysql 阅读全文
posted @ 2019-01-23 15:11 fangsheng420 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 一、使用yum安装mysql8.0.11: 1.下载mysql yum源: wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm 2.安装yum源: yum localinstall mysql80-com 阅读全文
posted @ 2019-01-23 15:06 fangsheng420 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 一、安装nodeJs: 1. 下载node-v10.8.0-linux-x64.tar.xz: 网址:http://nodejs.cn/download/ 2.解压: tar xvf node-v10.8.0-linux-x64.tar -C /usr/java/nodeJs 3.设置环境变量,在根 阅读全文
posted @ 2019-01-23 15:00 fangsheng420 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1、下载包: 拿出里面的dist的css和js文件: 并且需要jquery.js文件的支持: 2、需要images文件夹的图片,导入项目中 /static/css/images/ 3.导入: 效果: 阅读全文
posted @ 2019-01-23 14:46 fangsheng420 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1、解压: 2、把ckplayer中的文件导入项目中: 3、html引入文件js: 4、文件目录: 效果: 阅读全文
posted @ 2019-01-23 11:59 fangsheng420 阅读(230) 评论(0) 推荐(0) 编辑
摘要: bootstrap的使用: 1、下载: 2、解压: 3、导包: 4、引入: 导入css: <link rel="stylesheet" href="/static/plugins/bootstrap/css/bootstrap.css"> 导入jquery和js:bootstrap必须要jquery 阅读全文
posted @ 2019-01-23 11:35 fangsheng420 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1、下载SDK: https://docs.geetest.com/install/deploy/server/java 2、解压文件夹: 3、需要导入gt.js和两个jar包: 4、demo1和demo2中的文件: demo1是点字 demo2是滑 阅读全文
posted @ 2019-01-23 09:27 fangsheng420 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 0、centos默认有python2.7.5,需要对python2.7.5进行备份以及安装依赖包: 1)which python 可以看到可执行文件python指向python2,python2又指向python2.7也就是说Python命令执行的系统预装的Python2.7。 2) 要安装Pyth 阅读全文
posted @ 2019-01-23 09:07 fangsheng420 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.安装redis: yum install redis 2.启动redis: redis-server /etc/redis.conf 3.配置文件: vim /etc/redis.conf bind 0.0.0.0 port 6379 (注:端口) requestpass 123456(注:密码 阅读全文
posted @ 2019-01-23 08:59 fangsheng420 阅读(102) 评论(0) 推荐(0) 编辑