max32002 / tixcraft_bot

MaxBot open source code bot
https://max-everyday.com/2018/03/tixcraft-bot/
GNU General Public License v3.0
5 stars 3 forks source link

Ticketmaster SG 提交驗證碼表單後Google Chrome無響應 #279

Closed yupeijia20010404 closed 3 months ago

yupeijia20010404 commented 3 months ago

您好,首先非常感謝分享source code!我使用bot在ticketmaster sg網站購票時,在提交驗證碼表單後遇到Google Chrome無法響應的問題(圖一),終端報錯“find toast element fail"(圖二),最後強制關機時Google瀏覽器仍無響應(圖三)。請問原因是我的電腦配置不夠嗎? 我的電腦配置:MacBook Pro 13-inch 2020,處理器 2GHz 4 Intel Core i5,圖形卡 Intel Iris Plus Graphics 1536 MB,內存 16 GB 3733 MHz LPDDR4X,操作系統 macOS 14.5 (23F79) 我使用bot的操作: 1、輸入預售鏈接,點擊搶票,Google Chrome自動打開livenation sg預售網站 2、點擊預售網站的按鈕直接進入ticketmaster sg的“Buy Tickets"按鈕界面 3、bot自動幫我選區和張數,提交第一個表單後自動到填寫驗證碼的界面 4、在填好驗證碼提交時,無論驗證碼是否正確都會導致瀏覽器卡死

截屏2024-07-30 上午10 27 57 截屏2024-07-30 上午10 28 35 截屏2024-07-30 上午10 30 36
max32002 commented 3 months ago

1: 請改用 2024-04-22 版,看看還會不會遇到這個問題,我猜應該還是會,我先關掉這個 issue, 等你複製出問題,再重啟,並建議您,只需要反白並複製黑黑視窗裡的文字訊息,會比截圖提供更多的訊息。

2: 2020 的電腦,應該不會太慢,但「搶票」是比快,有空的話,借一台 Windows 電腦看看同一個場次的 ticketmaster.sg 購票時間,那一個平台花的比較多,購票花費多少時間,會顯示在黑黑的那個視窗。

yupeijia20010404 commented 3 months ago

感謝您的回覆,我能夠下載的最新版本是2024-04-21發布的,並且是latest branch,請問可以申請2024-04-22 版的下載權限嗎?另外您說需要複製的文字信息,指的是終端的所有輸出(比如像我中間放的那張截圖)?謝謝! 我使用的2024-04-21版目前會在ticketmaster sg的提交驗證碼頁面出錯,所以暫時還未能輸出購票成功的消息以及購票所花費的時間。

yupeijia20010404 commented 3 months ago

您好,我再次嘗試了使用bot搶票,並且等待瀏覽器響應,輸出的錯誤如下,keyword的填寫我不知是否正確,所以我手動選了區域,自動跳轉到驗證碼界面並幫我勾選同意和填寫驗證碼,然後瀏覽器就呈現白屏,等待一段時間後打印出錯誤。 請問能幫忙看看我需要如何調整操作嗎?謝謝!


server running on port: 16888
goto url: http://127.0.0.1:16888/settings.html
run button pressed.
execute in shell mode.
try python3
current time: 2024-07-30 17:54:46
maxbot app version: MaxBot (2024.04.21)
python version: 3.9.13
platform: macOS-10.16-x86_64-i386-64bit
homepage: https://ticketmaster.sg/ticket/area/24sg_straykids/1778?promoCode=MjRzZ19zdHJheWtpZHMyNOHr1lwyZrmQGqqnNsJZvuw%3D&checkCode=MDAwMDAwMDAwMDAwMDAwMDTHc9LSu9sBeMpjKJDemVN344ydwuUx%2FjsnBK9MaFT9
browser: chrome
webdriver_type: undetected_chromedriver
ChromeDriver exist: /Users/yupeijia/Coding/tixcraft_bot/webdriver/chromedriver
goto url: https://ticketmaster.sg/ticket/area/24sg_straykids/1778?promoCode=MjRzZ19zdHJheWtpZHMyNOHr1lwyZrmQGqqnNsJZvuw%3D&checkCode=MDAwMDAwMDAwMDAwMDAwMDTHc9LSu9sBeMpjKJDemVN344ydwuUx%2FjsnBK9MaFT9
https://ticketmaster.sg/ticket/area/24sg_straykids/1778?promoCode=MjRzZ19zdHJheWtpZHMyNOHr1lwyZrmQGqqnNsJZvuw%3D
is_need_refresh for keyword: PA4
is_need_refresh for keyword: PA7
is_need_refresh for keyword: PB5
is_need_refresh for keyword: PB6
https://ticketmaster.sg/ticket/check-captcha/24sg_straykids/1778/102/12?promoCode=MjRzZ19zdHJheWtpZHMyNOHr1lwyZrmQGqqnNsJZvuw%3D
ocr_answer: jdi
cERROR:logger:Maxbot URL Exception
ERROR:logger:Message: timeout: Timed out receiving message from renderer: 300.000
  (Session info: chrome=127.0.6533.72)
Stacktrace:
0   chromedriver                        0x0000000102b0b898 chromedriver + 5179544
1   chromedriver                        0x0000000102b032ca chromedriver + 5145290
2   chromedriver                        0x000000010267a2b0 chromedriver + 389808
3   chromedriver                        0x0000000102662afa chromedriver + 293626
4   chromedriver                        0x000000010266281a chromedriver + 292890
5   chromedriver                        0x0000000102660d1b chromedriver + 285979
6   chromedriver                        0x00000001026611df chromedriver + 287199
7   chromedriver                        0x000000010267022b chromedriver + 348715
8   chromedriver                        0x000000010268650d chromedriver + 439565
9   chromedriver                        0x000000010268b8eb chromedriver + 461035
10  chromedriver                        0x0000000102661867 chromedriver + 288871
11  chromedriver                        0x000000010268636f chromedriver + 439151
12  chromedriver                        0x0000000102705a85 chromedriver + 961157
13  chromedriver                        0x00000001026e8553 chromedriver + 841043
14  chromedriver                        0x00000001026b97f6 chromedriver + 649206
15  chromedriver                        0x00000001026ba05e chromedriver + 651358
16  chromedriver                        0x0000000102aceb00 chromedriver + 4930304
17  chromedriver                        0x0000000102ad3a16 chromedriver + 4950550
18  chromedriver                        0x0000000102ad40e5 chromedriver + 4952293
19  chromedriver                        0x0000000102ab0ec9 chromedriver + 4808393
20  chromedriver                        0x0000000102ad43d9 chromedriver + 4953049
21  chromedriver                        0x0000000102aa2824 chromedriver + 4749348
22  chromedriver                        0x0000000102af35a8 chromedriver + 5080488
23  chromedriver                        0x0000000102af3767 chromedriver + 5080935
24  chromedriver                        0x0000000102b02eae chromedriver + 5144238
25  libsystem_pthread.dylib             0x00007ff80ccf418b _pthread_start + 99
26  libsystem_pthread.dylib             0x00007ff80ccefae3 thread_start + 15
Traceback (most recent call last):
  File "/Users/yupeijia/Coding/tixcraft_bot/chrome_tixcraft.py", line 10735, in get_current_url
    url = driver.current_url
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/undetected_chromedriver/__init__.py", line 806, in __getattribute__
    return super().__getattribute__(item)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 444, in current_url
    return self.execute(Command.GET_CURRENT_URL)["value"]
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
    self.error_handler.check_response(response)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 300.000
  (Session info: chrome=127.0.6533.72)
Stacktrace:
0   chromedriver                        0x0000000102b0b898 chromedriver + 5179544
1   chromedriver                        0x0000000102b032ca chromedriver + 5145290
2   chromedriver                        0x000000010267a2b0 chromedriver + 389808
3   chromedriver                        0x0000000102662afa chromedriver + 293626
4   chromedriver                        0x000000010266281a chromedriver + 292890
5   chromedriver                        0x0000000102660d1b chromedriver + 285979
6   chromedriver                        0x00000001026611df chromedriver + 287199
7   chromedriver                        0x000000010267022b chromedriver + 348715
8   chromedriver                        0x000000010268650d chromedriver + 439565
9   chromedriver                        0x000000010268b8eb chromedriver + 461035
10  chromedriver                        0x0000000102661867 chromedriver + 288871
11  chromedriver                        0x000000010268636f chromedriver + 439151
12  chromedriver                        0x0000000102705a85 chromedriver + 961157
13  chromedriver                        0x00000001026e8553 chromedriver + 841043
14  chromedriver                        0x00000001026b97f6 chromedriver + 649206
15  chromedriver                        0x00000001026ba05e chromedriver + 651358
16  chromedriver                        0x0000000102aceb00 chromedriver + 4930304
17  chromedriver                        0x0000000102ad3a16 chromedriver + 4950550
18  chromedriver                        0x0000000102ad40e5 chromedriver + 4952293
19  chromedriver                        0x0000000102ab0ec9 chromedriver + 4808393
20  chromedriver                        0x0000000102ad43d9 chromedriver + 4953049
21  chromedriver                        0x0000000102aa2824 chromedriver + 4749348
22  chromedriver                        0x0000000102af35a8 chromedriver + 5080488
23  chromedriver                        0x0000000102af3767 chromedriver + 5080935
24  chromedriver                        0x0000000102b02eae chromedriver + 5144238
25  libsystem_pthread.dylib             0x00007ff80ccf418b _pthread_start + 99
26  libsystem_pthread.dylib             0x00007ff80ccefae3 thread_start + 15

Exception: Message: timeout: Timed out receiving message from renderer: 300.000
  (Session info: chrome=127.0.6533.72)