File "/home/dostoevsky/PycharmProjects/parser_tiktok/main.py", line 4, in <module>
parser("https://www.tiktok.com/@det_inside")
File "/home/dostoevsky/PycharmProjects/parser_tiktok/parser.py", line 6, in parser
browser = webdriver.Chrome(executable_path="chrome/chromedriver/chromedriver")
File "/home/dostoevsky/PycharmProjects/parser_tiktok/venv/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__
super().__init__(DesiredCapabilities.CHROME['browserName'], "goog",
File "/home/dostoevsky/PycharmProjects/parser_tiktok/venv/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 92, in __init__
super().__init__(
File "/home/dostoevsky/PycharmProjects/parser_tiktok/venv/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 276, in __init__
self.start_session(capabilities, browser_profile)
File "/home/dostoevsky/PycharmProjects/parser_tiktok/venv/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 369, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/home/dostoevsky/PycharmProjects/parser_tiktok/venv/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 434, in execute
self.error_handler.check_response(response)
File "/home/dostoevsky/PycharmProjects/parser_tiktok/venv/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
Stacktrace:
#0 0x55591e10e2d3 <unknown>
#1 0x55591df183fa <unknown>
#2 0x55591df3ad5e <unknown>
#3 0x55591df38ae4 <unknown>
#4 0x55591df741f3 <unknown>
#5 0x55591df6dfe3 <unknown>
#6 0x55591df43e33 <unknown>
#7 0x55591df45015 <unknown>
#8 0x55591e15a3fd <unknown>
#9 0x55591e15d99c <unknown>
#10 0x55591e14139e <unknown>
#11 0x55591e15e5d3 <unknown>
#12 0x55591e13528f <unknown>
#13 0x55591e17c728 <unknown>
#14 0x55591e17c8d2 <unknown>
#15 0x55591e19699f <unknown>
#16 0x7fb12b7063ba <unknown>
#17 0x7fb12b19f7a3 <unknown>
Process finished with exit code 1
сам код
from selenium import webdriver
import time
def parser(url):
browser = webdriver.Chrome(executable_path="chrome/chromedriver/chromedriver")
browser.get(url)
time.sleep(10)
Попробуй абсолютный путь указать
я пробовал, не получилось
Обсуждают сегодня