摘要: 安装 # 安装selenium pip3 install selenium #安装chromedriver #0 根据电脑上浏览器的版本下载对应的zip,淘宝镜像 http://npm.taobao.org/mirrors/chromedriver/ #1 mac 1、将下载的可执行文件移到/usr 阅读全文
posted @ 2021-02-21 14:16 该显示昵称已被使用了 阅读(80) 评论(0) 推荐(0)
摘要: 自动观看视频 from builtins import print import time from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait # 打开网页 browser = 阅读全文
posted @ 2021-02-21 13:55 该显示昵称已被使用了 阅读(72) 评论(0) 推荐(0)
摘要: 基本元素操作和选取 https://blog.csdn.net/weixin_41931602/article/details/82754743 等待 # 等待视频结束按钮 end_button = browser.find_element_by_css_selector(".btn.btn-pri 阅读全文
posted @ 2021-02-21 10:42 该显示昵称已被使用了 阅读(126) 评论(0) 推荐(0)
摘要: 自动看视频 视频点击后会导致重新加载页面,不适合用js做,适合用selenium // ==UserScript== // @name auto learn // @namespace learn // @include http://localhost* // @require https://c 阅读全文
posted @ 2021-02-21 07:45 该显示昵称已被使用了 阅读(131) 评论(0) 推荐(0)