第一步优化勾选功能

This commit is contained in:
27942
2026-02-05 16:06:06 +08:00
parent 9bcf650958
commit 5c3e4ad937
175 changed files with 7572 additions and 7271 deletions

1306
1.html

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

24
main.py
View File

@@ -681,22 +681,24 @@ class Pdd:
current_month_num = int(current_month.replace('', ''))
target_month_num = month
# 确定点击方向
# 限定在日期选择器内,用 class 定位RPR_right 仅日历右箭头有,避免轮播图)
date_root = 'x://div[@data-testid="beast-core-datePicker-dropdown-contentRoot"]'
if target_month_num > current_month_num:
# 点击右箭头
arrow_selector = 'x://svg[@data-testid="beast-core-icon-right"]'
arrow_selector = f'{date_root}//*[contains(@class,"RPR_iconPrevNext") and contains(@class,"RPR_right")]'
clicks_needed = target_month_num - current_month_num
else:
# 点击左箭头
arrow_selector = 'x://svg[@data-testid="beast-core-icon-left"]'
arrow_selector = f'{date_root}//*[contains(@class,"RPR_iconPrevNext") and not(contains(@class,"RPR_right"))]'
clicks_needed = current_month_num - target_month_num
# 点击箭头切换月份
for _ in range(min(clicks_needed, 12)):
arrow = creator_tab.ele(arrow_selector, timeout=1)
if arrow:
try:
arrow.click()
time.sleep(0.4)
except Exception:
pass
time.sleep(0.5)
# 验证是否切换成功
new_month_ele = creator_tab.ele('x://span[@class="RPR_dateText_5-152-0"]',
timeout=1)
@@ -1447,18 +1449,22 @@ class Pdd:
current_month_num = int(current_month.replace('', ''))
target_month_num = month
date_root = 'x://div[@data-testid="beast-core-datePicker-dropdown-contentRoot"]'
if target_month_num > current_month_num:
arrow_selector = 'x://svg[@data-testid="beast-core-icon-right"]'
arrow_selector = f'{date_root}//*[contains(@class,"RPR_iconPrevNext") and contains(@class,"RPR_right")]'
clicks_needed = target_month_num - current_month_num
else:
arrow_selector = 'x://svg[@data-testid="beast-core-icon-left"]'
arrow_selector = f'{date_root}//*[contains(@class,"RPR_iconPrevNext") and not(contains(@class,"RPR_right"))]'
clicks_needed = current_month_num - target_month_num
for _ in range(min(clicks_needed, 12)):
arrow = creator_tab.ele(arrow_selector, timeout=1)
if arrow:
try:
arrow.click()
time.sleep(0.4)
except Exception:
pass
time.sleep(0.5)
new_month_ele = creator_tab.ele('x://span[@class="RPR_dateText_5-152-0"]', timeout=1)
if new_month_ele and new_month_ele.text == target_month_str:
logger.info(f"成功切换到目标月份: {target_month_str}")

View File

@@ -1 +0,0 @@
[{"description":"treehash per file","signed_content":{"payload":"eyJjb250ZW50X2hhc2hlcyI6W3siYmxvY2tfc2l6ZSI6NDA5NiwiZGlnZXN0Ijoic2hhMjU2IiwiZmlsZXMiOlt7InBhdGgiOiJMSUNFTlNFIiwicm9vdF9oYXNoIjoiUGIwc2tBVUxaUzFqWldTQnctV0hIRkltRlhVcExiZDlUcVkwR2ZHSHBWcyJ9LHsicGF0aCI6ImNybC1zZXQiLCJyb290X2hhc2giOiJtTE9TS3RyLUVtZl9JZ19nRjZlMHdDRzMxcW43eGVZR1dPQlZCWGxueEZzIn0seyJwYXRoIjoibWFuaWZlc3QuanNvbiIsInJvb3RfaGFzaCI6IlNXdW5vemttVDdkZEh0Q0N1M0wwaVN4LXRfaG51dlV3ZDQ0NGJtcDViRTgifV0sImZvcm1hdCI6InRyZWVoYXNoIiwiaGFzaF9ibG9ja19zaXplIjo0MDk2fV0sIml0ZW1faWQiOiJoZm5rcGltbGhoZ2llYWRkZ2ZlbWpob2ZtZmJsbW5pYiIsIml0ZW1fdmVyc2lvbiI6IjEwMzI1IiwicHJvdG9jb2xfdmVyc2lvbiI6MX0","signatures":[{"header":{"kid":"publisher"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"IbY06hLvjqmo9UNj0FjRXL5g1BiCYmWzYD-g5KZ_SmORhmM_zYBlaZNAcQxaTBZ57Wk4aeTW0CrIyeo3rOEbJO-_TerWmL5CXgXDAuE8CtpCfyx-ylzleoE3LpZmVD-0dctW9DmY5g9wm7iKKM7zklicY8-b5rN6ig6clIIhS-lq_YNaq0Crq96csfZUeX887dGtmSYBAoO97qcLgKUOY3POA5Zlf7tIrO_9cpSe9HP9KpZvQyQAS0PylZ_AcrLIxCieSmiQRD5BUndpGUgUAsvrFI7EmV6qtFsVcKfvUbo4C2ukdz7wsjW_j_BShiSL43szMAmMXI5U3hJYoMkYgg"},{"header":{"kid":"webstore"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"G-fT69VWMZsSj0YCPVIqELcH-60HFB2gCpeupJw1oVCEwz5y_Nyh6Ky5rYq6y_fnyRwUrYiE8t-CISVTnTXui_Z9j0G64BIEVquIW1VuNYGT9K9P31ewHlRvd35j1Wu5CWOkR7vkUL7OjeJsLtSGCiNuOIKQoHuVgSlI1iwovIEMc1Pz6ufEZjVb0y0bnh22y0vJVlOWSo89_z0NtUpgV-6vBAzbiNjpN6u9s9nVOP9ZRwCobLFb5KwF1J7RhC6VI9e7kWkI29bUg9MWO_6FI6tzmNNRVQz0dYb1gKYXSazR0Miu_ADJqO9rdhZreigceremz4GwzJAXRdGmIBItWw"}]}}]

View File

@@ -1,5 +0,0 @@
{
"manifest_version": 2,
"name": "crl-set-18193778553362151743.data",
"version": "10325"
}

View File

@@ -0,0 +1 @@
[{"description":"treehash per file","signed_content":{"payload":"eyJjb250ZW50X2hhc2hlcyI6W3siYmxvY2tfc2l6ZSI6NDA5NiwiZGlnZXN0Ijoic2hhMjU2IiwiZmlsZXMiOlt7InBhdGgiOiJMSUNFTlNFIiwicm9vdF9oYXNoIjoiUGIwc2tBVUxaUzFqWldTQnctV0hIRkltRlhVcExiZDlUcVkwR2ZHSHBWcyJ9LHsicGF0aCI6ImNybC1zZXQiLCJyb290X2hhc2giOiIyaUpyeWQ0NlRvUGxPYWxPb3l1RmExT2hrVzBIMHlVQnlvV3NvdDlTOWpNIn0seyJwYXRoIjoibWFuaWZlc3QuanNvbiIsInJvb3RfaGFzaCI6Ik8tcnZVcExmSk9sb1FDeDlaWVpScjdjUHlkWVhEVEY0dms0bGNlMi1zSUUifV0sImZvcm1hdCI6InRyZWVoYXNoIiwiaGFzaF9ibG9ja19zaXplIjo0MDk2fV0sIml0ZW1faWQiOiJoZm5rcGltbGhoZ2llYWRkZ2ZlbWpob2ZtZmJsbW5pYiIsIml0ZW1fdmVyc2lvbiI6IjEwMzI2IiwicHJvdG9jb2xfdmVyc2lvbiI6MX0","signatures":[{"header":{"kid":"publisher"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"S-w8zKp-2whgHXEXNExGRf9tHgnQLRg0JOhoIL9SdD3WQwR8wlXXaoMqI9Ex10hxs5CiNr3SneL7uuxTmi_R4wrxV4FlXTqaPpY1bwzXRXoVeuOgsqvONYlmkgLbIboQp-BRfS9BRHjj9fTgCArM8CXbqf2MYcoltBRtkOhu_WBEuykkE-5KfruOspjbBrbgkQFnSZ6MhjHxw2WRchSP2BLGp_Lhix-Na7ORyIZR5sRfABjubAp28DNF0nZ4-j4Ic-Cxi4V2An6SeAuum_JI1-rKg1VO1wqvk2sq493-w9ByO72zR4i53ztq383TWkUOtYzKU3GFPu5NdAuDBTRErw"},{"header":{"kid":"webstore"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"MXk8uIFz1lA6bNw1JRoi9IT9Afxzk1sEb4jvFNG8vxDStZ0pHTg5U1Wp4VulDg1xxFZcCbjRAifH3LDs8SEnJhhQ_LO7rfNil36g8_7RWS_45l3V8gfHo7A45lRzRfH8ofJOFu6z6vyPAslZ7NYTYvCDHEQODfky3m8_AxSnkYPWD9ZooraVABzvf39BChyl58e0ehpRalk0APEVlxGzKmuePjTLpSGU_pbwauXCtsNKob1gnV4NWuPNubngR_kNGzxhN7aZmJxySH10Qpne9xCGrrU9j8V2RtiR84MWvrd4Uwow0qw57Rgvu_aZQicejqvbbrymGyp1skpdTNlo9w"}]}}]

View File

@@ -0,0 +1,5 @@
{
"manifest_version": 2,
"name": "crl-set-816998340439263387.data",
"version": "10326"
}

View File

@@ -22,5 +22,5 @@
"top_topics_and_observing_domains": [ ]
} ],
"hex_encoded_hmac_key": "434BF7DBD7DA573B45E0A11AD9045A61B6221D14AE2F9A341E2FEF659AF071F6",
"next_scheduled_calculation_time": "13414862793246996"
"next_scheduled_calculation_time": "13414862793247092"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Binary file not shown.

View File

@@ -1,3 +1,3 @@
2026/02/05-01:40:46.701 1d58c Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/MANIFEST-000001
2026/02/05-01:40:46.702 1d58c Recovering log #9
2026/02/05-01:40:46.702 1d58c Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/000009.log
2026/02/05-16:02:04.901 5f1c Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/MANIFEST-000001
2026/02/05-16:02:04.902 5f1c Recovering log #9
2026/02/05-16:02:04.902 5f1c Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/000009.log

View File

@@ -1,3 +1,3 @@
2026/02/05-01:38:43.801 1d548 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/MANIFEST-000001
2026/02/05-01:38:43.802 1d548 Recovering log #9
2026/02/05-01:38:43.802 1d548 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/000009.log
2026/02/05-15:59:20.921 2d38 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/MANIFEST-000001
2026/02/05-15:59:20.922 2d38 Recovering log #9
2026/02/05-15:59:20.922 2d38 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\File System\Origins/000009.log

View File

@@ -1,3 +1,3 @@
2026/02/05-01:40:52.054 1d48c Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/MANIFEST-000001
2026/02/05-01:40:52.055 1d48c Recovering log #3
2026/02/05-01:40:52.056 1d48c Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/000003.log
2026/02/05-16:02:08.454 3174 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/MANIFEST-000001
2026/02/05-16:02:08.454 3174 Recovering log #3
2026/02/05-16:02:08.545 3174 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/000003.log

View File

@@ -1,3 +1,3 @@
2026/02/05-01:38:51.717 1b1fc Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/MANIFEST-000001
2026/02/05-01:38:51.717 1b1fc Recovering log #3
2026/02/05-01:38:51.719 1b1fc Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/000003.log
2026/02/05-15:59:24.353 9ab4 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/MANIFEST-000001
2026/02/05-15:59:24.353 9ab4 Recovering log #3
2026/02/05-15:59:24.354 9ab4 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\GCM Store/000003.log

Binary file not shown.

View File

@@ -1,3 +1,3 @@
2026/02/05-01:40:46.289 1d470 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/MANIFEST-000001
2026/02/05-01:40:46.293 1d470 Recovering log #3
2026/02/05-01:40:46.298 1d470 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/000003.log
2026/02/05-16:02:03.944 7524 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/MANIFEST-000001
2026/02/05-16:02:03.947 7524 Recovering log #3
2026/02/05-16:02:03.951 7524 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/000003.log

View File

@@ -1,3 +1,3 @@
2026/02/05-01:38:39.736 1d5dc Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/MANIFEST-000001
2026/02/05-01:38:39.740 1d5dc Recovering log #3
2026/02/05-01:38:39.743 1d5dc Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/000003.log
2026/02/05-15:59:20.254 5a24 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/MANIFEST-000001
2026/02/05-15:59:20.258 5a24 Recovering log #3
2026/02/05-15:59:20.262 5a24 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Local Storage\leveldb/000003.log

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,3 @@
2026/02/05-01:40:46.182 1d58c Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/MANIFEST-000001
2026/02/05-01:40:46.184 1d58c Recovering log #3
2026/02/05-01:40:46.187 1d58c Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/000003.log
2026/02/05-16:02:03.855 59a4 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/MANIFEST-000001
2026/02/05-16:02:03.856 59a4 Recovering log #3
2026/02/05-16:02:03.858 59a4 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/000003.log

View File

@@ -1,3 +1,3 @@
2026/02/05-01:38:39.627 1d534 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/MANIFEST-000001
2026/02/05-01:38:39.628 1d534 Recovering log #3
2026/02/05-01:38:39.629 1d534 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/000003.log
2026/02/05-15:59:20.171 f40 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/MANIFEST-000001
2026/02/05-15:59:20.172 f40 Recovering log #3
2026/02/05-15:59:20.174 f40 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Service Worker\Database/000003.log

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,15 @@
2026/02/05-01:40:46.349 1d470 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/MANIFEST-000001
2026/02/05-01:40:46.350 1d470 Recovering log #23
2026/02/05-01:40:46.354 1d470 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/000023.log
2026/02/05-01:45:55.868 1d2dc Level-0 table #26: started
2026/02/05-01:45:55.874 1d2dc Level-0 table #26: 10591 bytes OK
2026/02/05-16:02:04.027 7524 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/MANIFEST-000001
2026/02/05-16:02:04.029 7524 Recovering log #25
2026/02/05-16:02:04.035 7524 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/000025.log
2026/02/05-16:02:04.534 4028 Level-0 table #28: started
2026/02/05-16:02:04.539 4028 Level-0 table #28: 10537 bytes OK
2026/02/05-16:02:04.543 4028 Delete type=0 #25
2026/02/05-16:02:04.544 4028 Compacting 4@0 + 1@1 files
2026/02/05-16:02:04.554 4028 Generated table #29@0: 3160 keys, 36500 bytes
2026/02/05-16:02:04.554 4028 Compacted 4@0 + 1@1 files => 36500 bytes
2026/02/05-16:02:04.557 4028 compacted to: files[ 0 1 1 0 0 0 0 ]
2026/02/05-16:02:04.558 4028 Delete type=2 #19
2026/02/05-16:02:04.558 4028 Delete type=2 #21
2026/02/05-16:02:04.558 4028 Delete type=2 #23
2026/02/05-16:02:04.558 4028 Delete type=2 #25
2026/02/05-16:02:04.558 4028 Delete type=2 #28

View File

@@ -1,3 +1,3 @@
2026/02/05-01:38:39.803 1d5dc Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/MANIFEST-000001
2026/02/05-01:38:39.806 1d5dc Recovering log #23
2026/02/05-01:38:39.818 1d5dc Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/000023.log
2026/02/05-15:59:20.342 5a24 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/MANIFEST-000001
2026/02/05-15:59:20.343 5a24 Recovering log #25
2026/02/05-15:59:20.347 5a24 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Session Storage/000025.log

Binary file not shown.

View File

View File

@@ -1,3 +1,3 @@
2026/02/05-01:40:46.187 1c4cc Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/MANIFEST-000001
2026/02/05-01:40:46.188 1c4cc Recovering log #9
2026/02/05-01:40:46.188 1c4cc Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/000009.log
2026/02/05-16:02:03.864 98e4 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/MANIFEST-000001
2026/02/05-16:02:03.865 98e4 Recovering log #9
2026/02/05-16:02:03.867 98e4 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/000009.log

View File

@@ -1,3 +1,3 @@
2026/02/05-01:38:39.634 1d4a8 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/MANIFEST-000001
2026/02/05-01:38:39.635 1d4a8 Recovering log #9
2026/02/05-01:38:39.635 1d4a8 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/000009.log
2026/02/05-15:59:20.182 80f0 Reusing MANIFEST C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/MANIFEST-000001
2026/02/05-15:59:20.183 80f0 Recovering log #9
2026/02/05-15:59:20.184 80f0 Reusing old log C:\Users\27942\Desktop\codes\haha\user\user_data\Default\Site Characteristics Database/000009.log

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More