摘要:
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
阅读(119)
评论(0)
推荐(0)
摘要:
python与MongoDB交互的代码: 阅读全文
posted @ 2019-01-23 16:45
fangsheng420
阅读(211)
评论(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
阅读(126)
评论(0)
推荐(0)
摘要:
1、MongoDB的集合(表): 1)、数据库操作: 创建数据库:use 数据库名 查看所有数据库:show dbs 删除数据库:use 数据库 db.dropDatabase() 查看当前数据库:db 2)、集合操作: 创建集合:db.createCollection("集合名") 查看集合:sh 阅读全文
posted @ 2019-01-23 16:39
fangsheng420
阅读(972)
评论(0)
推荐(0)
摘要:
1、MongoDB的介绍: 2、MongoDB的基本概念: 阅读全文
posted @ 2019-01-23 16:30
fangsheng420
阅读(114)
评论(0)
推荐(0)
摘要:
软件安装和管理 软件包 1、bin文件 .bin (适合所有Linux发行版) ,bin是可以执行文件。 2、rpm包(.rpm) ,yum(redhat系列==centos) 3、源码压缩包 (适合所有的Linux发行版) 4、官方已经编译好的,下载软件包直接可以使用(window下的绿色软件) 阅读全文
posted @ 2019-01-23 16:05
fangsheng420
阅读(266)
评论(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
阅读(915)
评论(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
阅读(424)
评论(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
阅读(616)
评论(0)
推荐(0)