当前位置:网站首页>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
边栏推荐
- SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
- R language uses timeroc package to calculate the multi time AUC value of survival data under competitive risk, uses Cox model and adds covariates, and R language uses the plotauccurve function of time
- aqs的学习
- Use the rolling division method to find the maximum common divisor of two numbers
- [2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
- SIGIR'22 "Microsoft" CTR estimation: using context information to promote feature representation learning
- 考研英语唐叔的语法课笔记
- ArcGIS js api 4. X submergence analysis and water submergence analysis
- nc基础用法1
- Remote code execution in Win 11 using wpad / PAC and JScript
猜你喜欢
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
【PTA】整除光棍
Numpy Index & slice & iteration
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
LeetCode动态规划训练营(1~5天)
AQS learning
Notes of Tang Shu's grammar class in postgraduate entrance examination English
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
After route link navigation, the sub page does not display the navigation style problem
随机推荐
redis 分布式锁
Implementation of mypromise
PCL点云处理之基于PCA的几何形状特征计算(五十二)
Numpy mathematical function & logical function
R语言使用caret包的preProcess函数进行数据预处理:对所有的数据列进行BoxCox变换处理(将非正态分布数据列转换为正态分布数据、不可以处理负数)、设置method参数为BoxCox
Investigate why close is required after sqlsession is used in mybatties
Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
Livego + ffmpeg + RTMP + flvjs to realize live video
aqs的学习
使用 WPAD/PAC 和 JScript在win11中进行远程代码执行3
Numpy sort search count set
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
Redis cache penetration, cache breakdown, cache avalanche
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
What is the difference between a host and a server?
JDBC database addition, deletion, query and modification tool class
論文寫作 19: 會議論文與期刊論文的區別
【PTA】整除光棍
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Common form verification