随笔- 182
文章- 1
评论- 28
阅读-
57万
11 2020 档案
python3文件下载
摘要:方法一: import urllib.request url = 'https://www.baidu.com/demo.rar' urllib.request.urlretrieve(url, 'D:/demo.rar') #Python3.3后urllib2已经不能再用,只能用urllib.re
阅读全文
selenium 开发者工具 手机模式
摘要:options = webdriver.chrome.options.Options() options.add_argument("--auto-open-devtools-for-tabs") mobile_emulation = {'deviceName': 'iPhone 6 Plus'}
阅读全文
seleniumn 启动时打开F12开发者工具
摘要:chromeOptions 是一个配置 chrome 启动是属性的类。通过这个类,我们可以为chrome配置如下参数(这个部分可以通过selenium源码看到): 设置 chrome 二进制文件位置 (binary_location) 添加启动参数 (add_argument) 添加扩展应用 (ad
阅读全文