dr-tsng / hit-clock Goto Github PK
View Code? Open in Web Editor NEWHIT每日上报自动脚本
HIT每日上报自动脚本
hxd,这回改了好多,这个版本提交的信息还可以吗?
老哥,每日出校总是运行失败啊,我自己手动再点一次re-run all job就好使了,能不能再修复一下啊
Today, my action-job failed and the exception is cannot find element of class name "submit", and all checkbox is missing 5 times. But when I tested it in my own pc, it worked fine.
There is a chance that GitHub's ip may be on a black list of HIT-XG, but I can't confirm that as I reran my job after the test, it worked normally.
Have any ideas?
Got information that the school department is planning to punish the automatic-report project.
今天玩xposed才发现,老哥原来是Shamiko的作者,跪拜
Run python 每日上报.py
Traceback (most recent call last):
初始化浏览器
File "/home/runner/work/HIT-clock/HIT-clock/每日上报.py", line 22, in
正在上报
driver.get('https://xg.hit.edu.cn/zhxy-xgzs/xg_mobile/xs/yqxx')
File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 333, in get
self.execute(Command.GET, {'url': url})
File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_CONNECTION_TIMED_OUT
(Session info: headless chrome=91.0.4472.101)
Error: Process completed with exit code 1.
教工系统又改了,。。。
只有蓝色的 下面显示 There are no workflow runs yet.
是我自己出问题了吗?
Run python 每日上报.py
Traceback (most recent call last):
初始化浏览器
File "/home/runner/work/HIT-clock/HIT-clock/每日上报.py", line 20, in
正在上报
driver.find_element_by_id('load').click()
File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 360, in find_element_by_id
return self.find_element(by=By.ID, value=id_)
File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="load"]"}
(Session info: headless chrome=93.0.4577.63)
Error: Process completed with exit code 1
Run python 每日上报.py
Traceback (most recent call last):
初始化浏览器
正在上报
File "/home/runner/work/HIT-clock/HIT-clock/每日上报.py", line 28, in
driver.find_element_by_id('center').find_elements_by_tag_name('div')[5].click()
File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 360, in find_element_by_id
return self.find_element(by=By.ID, value=id_)
File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="center"]"}
(Session info: headless chrome=91.0.4472.114)
Error: Process completed with exit code 1.
In the morning of September 25th, this script has failed. The reason is that url https://xg.hit.edu.cn/zhxy-xgzs/xg_mobile/xsMrsbNew is not exist anymore (return 404), new url is https://xg.hit.edu.cn/zhxy-xgzs/xg_mobile/xsMrsbNew/index
暴露了老哥
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.