当前位置:网站首页>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
边栏推荐
- Redis distributed lock
- Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
- Mysql database and table building: the difference between utf8 and utf8mb4
- [text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
- aqs的学习
- SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
- NC basic usage 4
- NC basic usage 1
- JDBC database addition, deletion, query and modification tool class
- Redis installation (centos7 command line installation)
猜你喜欢
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
【PTA】L1-002 打印沙漏
CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
Tensorflow 2 basic operation dictionary
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
STM32 Basics
Installation and use of NVM
随机推荐
Common form verification
[problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
Customize timeline component styles
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
论文写作 19: 会议论文与期刊论文的区别
Notes of Tang Shu's grammar class in postgraduate entrance examination English
R language ggplot2 visualization: ggplot2 visualizes the scatter diagram and uses geom_ mark_ The ellipse function adds ellipses around data points of data clusters or data groups for annotation
nc基础用法4
R language survival package coxph function to build Cox regression model, ggrisk package ggrisk function and two_ Scatter function visualizes the risk score map of Cox regression, interprets the risk
Research on open source OCR engine
Commit and rollback in DCL of 16 MySQL
Redis installation (centos7 command line installation)
R language uses econocrats package to create microeconomic or macroeconomic map, visualize indifference function indifference curve, customize calculation intersection, and customize the parameters of
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
Implementation of mypromise
Fundamentals of programming language (2)
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
Sqoop imports tinyint type fields to boolean type