Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YeQiuO committed Sep 18, 2022
1 parent 1a7e4ad commit fd20cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')

driverfile_path = r'D:\Document\DevelopmentTools\edgedriver_win64\msedgedriver.exe'

# 执行打卡
def send(sessionid):
Expand Down Expand Up @@ -79,7 +78,7 @@ def punch(browser):
browser.get("https://skl.hduhelp.com/passcard.html#/passcard")
sessionId = browser.execute_script("return window.localStorage.getItem('sessionId')")
time.sleep(5)

print(send(sessionId))

# 退出窗口
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
selenium==4.1.0
requests==2.25.1
requests==2.27.1

0 comments on commit fd20cbd

Please sign in to comment.