当前位置:网站首页>Automatically fill in body temperature and win10 task plan
Automatically fill in body temperature and win10 task plan
2022-04-23 20:20:00 【Install a sound 77】
Because of the epidemic , Students who have started school need to fill in all kinds of temperature information , Multiple times a day on average , After forgetting to fill in, it is the telephone bombing of the counselor assistant .
Although this principle is good , But there is no doubt that it will eventually become formalism .
1. The purpose of the school is to screen out the students with hidden dangers of high temperature at the first time 2. The school does not have the ability to conduct a unified temperature test for all students 3. Healthy students don't have enough willingness to take their own temperature test 4. Students who are willing to have physical tests are more likely to be at risk . So obviously, it is more reasonable to establish a high-temperature reaction mechanism , Instead of patting your head and filling in , In the end, it bothered most people .
Forget it , That's not the point either
For this kind of questionnaire, star's Questionnaire , The process is very simple , There is no need to simulate login when filling in
It is usually forwarded to the group in this form
also url Long term non replacement , use selenium and python It's easy to achieve this goal , First import the following packages .
from selenium import webdriver
import time
from selenium.webdriver.support.ui import Select
import datetime
Use three-stage login
login_url = "https://www.wjx.top/XXXX"
driver = webdriver.Chrome()
driver.maximize_window()
driver.get(login_url)
Direct browser F12 Get into ,ctrl+shift+c Position to the front button The location of the text , With full xpath Direct copy
The next step is Text Button Fill in multiple boxes
# Fill in text
driver.find_elements_by_xpath('/html/body/div[2]/div[1]/div[2]/div[1]/div/div[1]/div[2]/div[2]/fieldset/div[3]/div[2]/textarea')[0].send_keys(tianru[0])
# Click button
driver.find_elements_by_xpath('/html/body/div[2]/div[1]/div[2]/div[1]/div/div[1]/div[2]/div[4]/table/tbody/tr/td[1]/input')[0].click()
# choice Locate the <select>
select = Select(driver.find_elements_by_xpath('/html/body/div[2]/div[1]/div[2]/div[1]/div/div[1]/div[2]/div[2]/fieldset/div[5]/div[2]/select')[0])
select.select_by_visible_text(zaowan[1])
In this way, the script is basically completed .
Next, design the script to start automatically , It was originally considered to be deployed to Alibaba cloud , however linux No, chrome So just use it. WIN10 The self-contained planned task is realized .
Click computer management Create tasks And fill in the time in the trigger
Then import the script you run
Automatic tasks can be completed .
版权声明
本文为[Install a sound 77]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210551491325.html
边栏推荐
- Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
- Servlet learning notes
- 程序设计语言基础(2)
- Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
- 使用 WPAD/PAC 和 JScript在win11中进行远程代码执行1
- R语言使用timeROC包计算存在竞争风险情况下的生存资料多时间AUC值、使用cox模型、并添加协变量、R语言使用timeROC包的plotAUCcurve函数可视化多时间生存资料的AUC曲线
- Commit and ROLLBACK in DCL of 16mysql
- [latex] 5 how to quickly write out the latex formula corresponding to the formula
- How does onlyoffice solve no route to host
- PCL点云处理之计算两平面交线(五十一)
猜你喜欢
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
Recommend an open source free drawing software draw IO exportable vector graph
Fundamentals of programming language (2)
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
Openharmony open source developer growth plan, looking for new open source forces that change the world!
go-zero框架数据库方面避坑指南
Leetcode dynamic planning training camp (1-5 days)
随机推荐
MySQL advanced lock - overview of MySQL locks and classification of MySQL locks: global lock (data backup), table level lock (table shared read lock, table exclusive write lock, metadata lock and inte
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
STM32基础知识
Markdown < a > tag new page open link
NC basic usage
Vericrypt file hard disk encryption tutorial
How about CICC fortune? Is it safe to open an account
Cadence OrCAD capture batch change component packaging function introduction graphic tutorial and video demonstration
Confusion about thread blocking after calling the read () method of wrapper flow
Cadence Orcad Capture 批量更改元件封装功能介绍图文教程及视频演示
STM32 Basics
aqs的学习
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
What is the difference between a host and a server?
Numpy mathematical function & logical function
Computing the intersection of two planes in PCL point cloud processing (51)
Historical track data reading of Holux m1200-e Bluetooth GPS track recorder
PostgreSQL basic functions
Mysql database and table building: the difference between utf8 and utf8mb4
Unity 模型整体更改材质