Open jack-lem opened 5 months ago
Windows
python 3.7
No response
WARNING:root:ip :192.168.1.105 WARNING:root:创建数据库连接信息 :{'host': '192.168.1.105', 'port': 3206, 'user': 'luckybili', 'passwd': 'luckybililuckybili', 'charset': 'utf8', 'cursorclass': <class 'pymysql.cursors.DictCursor'>} 2024-06-03 21:18:46,019 - login_service.py - INFO - 启动登录模块 INFO:login_service.py:启动登录模块 2024-06-03 21:19:01,129 - login_service.py - INFO - 使用cookie自动登录成功! INFO:login_service.py:使用cookie自动登录成功! 2024-06-03 21:19:19,396 - SearchDynamicByUps.py - ERROR - [searchFromFiftyUps 从“你的工具人老公”查找抽奖动态 出错 Message: Stacktrace:
] Traceback (most recent call last): File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 43, in searchFromFiftyUps first_dyn_element = ElementUtil.get_element_by_xpath(bro, chains, pathOne) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/utils/webdriver_util.py", line 21, in get_element_by_xpath return WebDriverWait(bro, 10).until(EC.element_to_be_clickable((By.XPATH, path))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/support/wait.py", line 89, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace:
ERROR:SearchDynamicByUps.py:[searchFromFiftyUps 从“你的工具人老公”查找抽奖动态 出错 Message: Stacktrace:
WARNING:root:ip :192.168.1.105 WARNING:root:创建数据库连接信息 :{'host': '192.168.1.105', 'port': 3206, 'user': 'luckybili', 'passwd': 'luckybililuckybili', 'charset': 'utf8', 'cursorclass': <class 'pymysql.cursors.DictCursor'>} 2024-06-03 21:19:32,107 - SearchDynamicByUps.py - ERROR - [searchFromBigFish 从“大锦鲤”查找抽奖动态 出错 Message: Stacktrace:
] Traceback (most recent call last): File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 72, in searchFromBigFish base_link_element = ElementUtil.get_element_by_xpath(bro, chains, pathOne) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/utils/webdriver_util.py", line 21, in get_element_by_xpath return WebDriverWait(bro, 10).until(EC.element_to_be_clickable((By.XPATH, path))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/support/wait.py", line 89, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace:
ERROR:SearchDynamicByUps.py:[searchFromBigFish 从“大锦鲤”查找抽奖动态 出错 Message: Stacktrace:
应该跟cookie有关,扫码登录是可以的,用login_by_cookie不行,login_by_cookie2可以。感觉是只有SESSDATA不够。
一样的错误 求解
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Windows
运行的python版本是?
python 3.7
复现步骤 🕹
No response
问题描述 😯
终端日志 📒
WARNING:root:ip :192.168.1.105 WARNING:root:创建数据库连接信息 :{'host': '192.168.1.105', 'port': 3206, 'user': 'luckybili', 'passwd': 'luckybililuckybili', 'charset': 'utf8', 'cursorclass': <class 'pymysql.cursors.DictCursor'>} 2024-06-03 21:18:46,019 - login_service.py - INFO - 启动登录模块 INFO:login_service.py:启动登录模块 2024-06-03 21:19:01,129 - login_service.py - INFO - 使用cookie自动登录成功! INFO:login_service.py:使用cookie自动登录成功! 2024-06-03 21:19:19,396 - SearchDynamicByUps.py - ERROR - [searchFromFiftyUps 从“你的工具人老公”查找抽奖动态 出错 Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3
] Traceback (most recent call last): File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 43, in searchFromFiftyUps first_dyn_element = ElementUtil.get_element_by_xpath(bro, chains, pathOne) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/utils/webdriver_util.py", line 21, in get_element_by_xpath return WebDriverWait(bro, 10).until(EC.element_to_be_clickable((By.XPATH, path))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/support/wait.py", line 89, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3
ERROR:SearchDynamicByUps.py:[searchFromFiftyUps 从“你的工具人老公”查找抽奖动态 出错 Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3
] Traceback (most recent call last): File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 43, in searchFromFiftyUps first_dyn_element = ElementUtil.get_element_by_xpath(bro, chains, pathOne) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/utils/webdriver_util.py", line 21, in get_element_by_xpath return WebDriverWait(bro, 10).until(EC.element_to_be_clickable((By.XPATH, path))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/support/wait.py", line 89, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3
WARNING:root:ip :192.168.1.105 WARNING:root:创建数据库连接信息 :{'host': '192.168.1.105', 'port': 3206, 'user': 'luckybili', 'passwd': 'luckybililuckybili', 'charset': 'utf8', 'cursorclass': <class 'pymysql.cursors.DictCursor'>} 2024-06-03 21:19:32,107 - SearchDynamicByUps.py - ERROR - [searchFromBigFish 从“大锦鲤”查找抽奖动态 出错 Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3
] Traceback (most recent call last): File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 72, in searchFromBigFish base_link_element = ElementUtil.get_element_by_xpath(bro, chains, pathOne) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/utils/webdriver_util.py", line 21, in get_element_by_xpath return WebDriverWait(bro, 10).until(EC.element_to_be_clickable((By.XPATH, path))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/support/wait.py", line 89, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3
ERROR:SearchDynamicByUps.py:[searchFromBigFish 从“大锦鲤”查找抽奖动态 出错 Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3
] Traceback (most recent call last): File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 72, in searchFromBigFish base_link_element = ElementUtil.get_element_by_xpath(bro, chains, pathOne) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/utils/webdriver_util.py", line 21, in get_element_by_xpath return WebDriverWait(bro, 10).until(EC.element_to_be_clickable((By.XPATH, path))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/support/wait.py", line 89, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace:
0 0x5569e44bbe9a
1 0x5569e41a545c
2 0x5569e41f15b5
3 0x5569e41f1671
4 0x5569e4235f14
5 0x5569e42144dd
6 0x5569e42332cc
7 0x5569e4214253
8 0x5569e41e41c7
9 0x5569e41e4b3e
10 0x5569e44822db
11 0x5569e4486387
12 0x5569e446ee0e
13 0x5569e4486e52
14 0x5569e44537af
15 0x5569e44ab188
16 0x5569e44ab35b
17 0x5569e44bafcc
18 0x7f24a8e5eac3