![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
网页自动化
python+selenium+firefox实现自动化网页内容勾选、编制
inexo_comment
这个作者很懒,什么都没留下…
展开
-
python+selenium+firefox实现自动化网页内容勾选、编制(4)读取excel表自动寻找到正确的账号与密码
寻找正确的账号与密码excel表中以部门编号为分类标准,分成了多个事项列表sheet,同时具有一张名为password的sheet,里面是所有部门的账号密码。需要实现对所有事项进行网页操作,就需要:1.自动登录网站。2.自动查找事项。3.自动操作事项。4.自动上报事项。1.自动登录网站**自动寻找到正确的账号与密码代码如下:# coding = utf-8 import timeimport openpyxl # 用于读写excelimport pyautogui as pagi原创 2021-05-11 14:52:36 · 368 阅读 · 0 评论 -
python+selenium+firefox实现自动化网页内容勾选、编制(3)实现自动识别数字二维码并输出验证码
标题实现自动识别数字二维码并输出验证码利用selenium截图,找到验证码位置,识别并输出。(感觉上好像很烦的样子,其实找个储存位置,再找一下验证码位置,其实运行起来很快的。之前在网上找了半天其他的办法,最后还是真香了一下。找了几个大佬的代码,就下面这个最好用。)代码如下:# coding = utf-8 import timeimport pyautogui as pagimport pytesseractfrom PIL import Image, ImageEnhancefrom原创 2021-05-10 16:31:44 · 632 阅读 · 0 评论 -
【问题记录】运行python+selenium程序报错,NoSuchWindowException: Browsing context has been discarded
看了看网上的解决方法,没有找到什么具体有效的办法,所以重装了一下selenium,不知道有没有用。原创 2021-05-10 10:58:52 · 2309 阅读 · 1 评论 -
python+selenium+firefox实现自动化网页内容勾选、编制(2)用openpyxl实现遍历excel中的所有sheets
python+selenium+firefox实现自动化网页内容勾选、编制(2)用openpyxl实现遍历excel中的所有sheets基础代码如下:import timeimport openpyxl # 用于读写excelfrom selenium import webdriverfrom selenium.common.exceptions import NoSuchElementExceptionfrom selenium.webdriver.common.action_chains原创 2021-05-03 17:55:23 · 247 阅读 · 0 评论