kangoka / tiktodv3

Get unlimited Tik Tok views or hearts or followers or shares.
688 stars 327 forks source link

driver = webdriver.Chrome( options=chrome_options) #147

Open Aloneintokyoo opened 2 years ago

Aloneintokyoo commented 2 years ago

/_ / / /// / \/ \ | | / / / / / / // ,< / / / / / / / / / | | / / / < / / / // /| | / / / // / // / | |/ // / /_/ /// ||// _// |_//__/

  1. Viewbot.
  2. Heartbot.
  3. Followerbot.
  4. Sharebot.
  5. Credits.

Mode: 2 TikTok video URL: https://www.tiktok.com/@user/video/21326445213131231 Traceback (most recent call last): File "/home/user/Downloads/tiktodv3/tiktodv3.py", line 42, in driver = webdriver.Chrome( options=chrome_options) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chrome/webdriver.py", line 69, in init super().init(DesiredCapabilities.CHROME['browserName'], "goog", File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chromium/webdriver.py", line 92, in init super().init( File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 272, in init self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 364, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace:

0 0x564c8d1df343

1 0x564c8cfe954a

2 0x564c8d00f253

3 0x564c8d00a256

4 0x564c8d048af6

5 0x564c8d04845f

6 0x564c8d040a73

7 0x564c8d0154f3

8 0x564c8d016731

9 0x564c8d22d62e

10 0x564c8d230ac2

11 0x564c8d213f4e

12 0x564c8d231743

13 0x564c8d20836f

14 0x564c8d251a28

15 0x564c8d251ba6

16 0x564c8d26bd52

17 0x7fe5af08784a

Fakesum commented 2 years ago

try adding

chrome_options.add_argument('--no-sandbox --disable-dev-shm-usage --headless')

at line 34. This might happen becuase you are trying to run selenium without a display available. see this for more info.

felmounzil commented 1 year ago

I have added thius line but the same error:

Mode: 1 TikTok video URL: https://www.tiktok.com/@abdeljalilelm/video/7264272827841383685?is_from_webapp=1&sender_device=pc&web_id=7257290506450241051 Traceback (most recent call last): File "C:\Fouad\Youtube et Création Contenu\TikTok\tiktodv3-master\tiktodv3.py", line 37, in driver = webdriver.Chrome( options=chrome_options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\felm\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 80, in init super().init( File "C:\Users\felm\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 104, in init super().init( File "C:\Users\felm\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in init self.start_session(capabilities, browser_profile) File "C:\Users\felm\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 378, in start_session response = self.execute(Command.NEW_SESSION, parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\felm\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute self.error_handler.check_response(response) File "C:\Users\felm\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: crashed. (timeout: Timed out receiving message from renderer: 60.000) (The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace: GetHandleVerifier [0x00007FF6ACAB8872+55810] (No symbol) [0x00007FF6ACA25792] (No symbol) [0x00007FF6AC8DDABB] (No symbol) [0x00007FF6AC90C27B] (No symbol) [0x00007FF6AC9080FE] (No symbol) [0x00007FF6AC94690C] (No symbol) [0x00007FF6AC93E993] (No symbol) [0x00007FF6AC913731] (No symbol) [0x00007FF6AC914974] GetHandleVerifier [0x00007FF6ACE1A5B2+3602242] GetHandleVerifier [0x00007FF6ACE6DA20+3943344] GetHandleVerifier [0x00007FF6ACE6681F+3914159] GetHandleVerifier [0x00007FF6ACB55F16+700582] (No symbol) [0x00007FF6ACA30D38] (No symbol) [0x00007FF6ACA2CA64] (No symbol) [0x00007FF6ACA2CB92] (No symbol) [0x00007FF6ACA1CE23] BaseThreadInitThunk [0x00007FFE84DF7614+20] RtlUserThreadStart [0x00007FFE865426B1+33]