摘要: 1.WebDriverWait等设置等待时间和超时时间 https://www.cnblogs.com/BigFishFly/p/6337153.html 2. expected_conditions判断页面元素 https://www.cnblogs.com/linbao/p/8082293.ht 阅读全文
posted @ 2019-01-09 18:34 M兔 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.下载 chromedriver.exe,并放到chrome的安装目录2.将chrome的安装目录添加到系统变量中3.重启电脑4.写一个比见到脚本# coding = utf-8 from selenium import webdriver browser = webdriver.Chrome() 阅读全文
posted @ 2019-01-09 16:44 M兔 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1. Python is likely shutting down 解决方案https://www.cnblogs.com/drake-guo/p/6188366.html 2. Selenium 报错:Element is not clickable at point的解决办法 org.openq 阅读全文
posted @ 2019-01-09 16:09 M兔 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1. Selenium with Python 官方资料 https://selenium-python.readthedocs.io/index.html 2.下载chromedriver.exe http://chromedriver.storage.googleapis.com/index.h 阅读全文
posted @ 2019-01-09 15:38 M兔 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1.字段中有中文,进行排序 传统的排序方法,比如select * from tableA order by id desc可以对英文、数字进行排序。但是遇到中文就没有办法了。这个时候需要以下的语句: select * from tableA order by convert(name using g 阅读全文
posted @ 2018-11-27 10:49 M兔 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 选择Maven项目 Group Id:类似于包名 Artiface Id:项目的名称 Version:初始的版本号,一般不需要改动 Packaging:选择项目的打包类型,选择jar就是一个java项目,选择war就是一个web项目 其他选项设置为空,点击Next创建项目 2. 创建好的项目是一个j 阅读全文
posted @ 2018-11-26 16:14 M兔 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1.安装java https://blog.csdn.net/lyflyyvip/article/details/78265747 2.CentOS7 通过YUM安装MySQL https://www.cnblogs.com/jorzy/p/8455519.html 3. 手动增加虚拟内存 http 阅读全文
posted @ 2018-11-12 17:48 M兔 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1. json转换时,中文乱码 设置参数 ensure_ascii=False解决 https://blog.csdn.net/u014431852/article/details/53058951 2. https请求时关闭ssl安全验证 pip.exe install MySQL-python 阅读全文
posted @ 2018-10-23 13:42 M兔 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1. dict 与json互转 在Python语言中,json数据与dict字典以及对象之间的转化,是必不可少的操作。 在Python中自带json库。通过import json导入。 在json模块有2个方法, loads():将json数据转化成dict数据 dumps():将dict数据转化成 阅读全文
posted @ 2018-10-17 15:22 M兔 阅读(1467) 评论(0) 推荐(0) 编辑
摘要: 首先将排序的对象放到list中,然后通过Collections.sort(list)进行排序。JDK的大量的类包括常见的 String、Byte、Char、Date等都实现了Comparable接口,所以都可以放到list用Collections.sort()进行排序。对于排序对象是java bea 阅读全文
posted @ 2018-10-10 16:54 M兔 阅读(155) 评论(0) 推荐(0) 编辑