python爬虫有很多种方式,也有很多爬虫库和爬虫框架,这里主要介绍常用的两种:
爬虫方式一:requests+BeautifulSoup
pip install beautifulsoup4
# 爬虫方式一:requests+BeautifulSoup
im...
admin
8个月前 (05-19) 270℃
1喜欢
selenium 是一个用于Web应用程序测试的工具。Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。支持的浏览器包括IE(7, 8, 9, 10, 11),Mozilla Firefox,Safari,Google Chrome,Opera等。selenium...
admin
8个月前 (05-19) 267℃
1喜欢
PHP Code Sniffer 插件
介绍
PHP_CodeSniffer 是一个代码风格检测工具。它包含两类脚本,phpcs 和 phpcbf(GitHub地址:https://github.com/squizlabs/PHP_CodeSniffer)
phpcs
phpcs...
admin
9个月前 (04-08) 246℃
1喜欢
1、Linux官方镜像
kernel 镜像站: http://mirrors.kernel.org/
Fedora 官方镜像站:http://mirrors.fedoraproject.org/publiclist
Debian 全球镜像站:http://ww...
admin
11个月前 (02-21) 303℃
2喜欢
排查锁及事务相关:
show status like 'innodb_row_lock%'; -- 查看所有锁状态
select * from information_schema.INNODB_LOCKS; -- 查看锁
select * from informati...
admin
1年前 (2019-12-13) 254℃
1喜欢
1、问题:配置nginx https时,ngxin做http强制跳转https,接口的POST请求变成GET,域名配置了http强制跳转htpps后发现app发起post请求会出现405错误;
分析:转发和跳转的时候,post变成了get,跳转之前做下处理即可。
解决:
se...
admin
1年前 (2019-11-04) 278℃
1喜欢
1、问题:ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
分析:一般是密码错误引起的,修改root密码;
解决:...
admin
1年前 (2019-11-01) 249℃
1喜欢
依山傍水房数间
行也安然
坐也安然
一头耕牛半顷天
收也凭天
荒也凭天
雨过天晴驾小船
鱼在一边
酒在一边
路逢骚客问诗篇
好也几言
歹也几言
布衣得暖胜丝绵
新也可穿
旧也可穿
粗茶淡饭饱三餐
早也香甜
晚也香甜
夜归妻子话灯前
今也谈谈
古也谈谈
一觉睡到日三竿
不是神仙
...
admin
1年前 (2019-10-11) 251℃
2喜欢
概念:
镜像image :镜像是只读的
容器container :启动容器的时候是在只读层上加了一层可写层
仓库repository :集中存放镜像
查看内核版本,必须是3.10以上:
uname -r
升级yum:
yum update
卸载:
yum re...
admin
1年前 (2019-09-30) 366℃
2喜欢
1、将字符串格式时间转化成时间元组:
t1 = time.strptime('2019-09-18 17:04:00', '%Y-%m-%d %H:%M:%S')
print t1
time.struct_time(tm_year=2019, tm_mon=9, tm...
admin
1年前 (2019-09-19) 304℃
2喜欢
搭建python的web服务,网上有各种各样的解决方案,但是感觉都不太尽人意,不是报错就是太简化,达不到要求,至此,我归纳总结下方法。
1、安装apache和python都比较简单,apache安装就不赘述,python安装我之前写过一篇,可以参考下入口
2、为Apache配置w...
admin
2年前 (2019-06-12) 589℃
2喜欢
命令
说明
备注
php artisan clear-compiled
清除编译后的类文件
php artisan down
使应用程序进入维修模式
php artisan up
退出应用程序的维护模式
php artisan env
显示当前框...
admin
2年前 (2019-05-19) 662℃
1喜欢
#安装shadowsocks
yum install -y wget && wget --no-check-certificate -O shadowsocks-libev.sh https://raw.githubusercontent.com/u...
admin
2年前 (2019-04-14) 1260℃
4喜欢