- 博客(4)
- 收藏
- 关注
原创 helium 携带 cookies 登录、helium切换Selenium
helium 练习 *** 携带 cookies 登录 *** 主要在于: -切换Selenium 命令- 试了 helium自动化测试公众号(搜到他家教程多点,不是推广???? )介绍了两种方法(方法一、方法二), 但是携带cookies一直失败, 最终使用 <driver.get(url)>在这花费的时间有点久。 关于怎么加载cookies.pickle 之前有写过 import os import pickle from helium import * def read_cookie
2020-12-29 08:50:25
1024
1
原创 py文件封装exe
pyinstaller 官网: https://pyinstaller.readthedocs.io/en/latest/ 安装: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pyinstaller 开始: 封装的 py 文件: ComplaintMain cd 到目录 > ↓ pyinstaller -F -i爬虫.ico ComplaintMain.py # -i爬虫.ico 可省略
2020-10-13 21:06:47
386
2
原创 mysql 字段中有括号的查询方法
查询字段中带中括号 尝试的方法有: select [新车价格含税(万)]from rereche_item_a select `[新车价格含税(万)]`from rereche_item_a select `%[新车价格含税(万)]%`from rereche_item_a select '[新车价格含税(万)]'from rereche_item_a 上面的一直都在报错 加反单引号 就ok了 select `新车价格含税(万)`from rereche_item_a 再试看看 我要查询的数据 sel
2020-09-08 00:36:47
3563
3
原创 储存 加载 cookies,实现 selenium 自动登录
通过扫描二维码、账号密码 获取cookies 信息 , 进行->储存、加载 环境: python3.6 模块: selenium 、time、pickle、os URL: https://qzone.qq.com from selenium import webdriver import time import pickle import os driver = webdriver.Chrome() """" 储存 加载 cookies ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
2020-09-08 00:34:17
488
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人