mirror of
https://github.com/JasonYANG170/AutoCheckBJMF.git
synced 2024-11-23 12:16:25 +00:00
Update main.py
This commit is contained in:
parent
4a2805202e
commit
d107860a36
6
main.py
6
main.py
|
@ -57,7 +57,11 @@ while True:
|
|||
# 使用正则表达式从 HTML 文本中提取所有 punch_gps() 中的数字
|
||||
pattern = re.compile(r'punch_gps\((\d+)\)')
|
||||
matches = pattern.findall(response.text)
|
||||
|
||||
print("找到GPS定位签到:", matches)
|
||||
pattern2 = re.compile(r'punchcard_(\d+)')
|
||||
matches2 = pattern2.findall(response.text)
|
||||
print("找到扫码签到:", matches2)
|
||||
matches.extend(matches2)
|
||||
if matches:
|
||||
for match in matches:
|
||||
print(match)
|
||||
|
|
Loading…
Reference in New Issue
Block a user