1

I made a code


from bs4 import BeautifulSoup
from selenium import webdriver
from urllib.request import urlopen
from urllib.parse import quote_plus
import time


url1 = "https://www.instagram.com/explore/tags/"
url2 = input("write a hashtag : ")
url = url1 + quote_plus(url2)


driver = webdriver.Chrome('executable_path=r"C:\Chrome\chromedriver.exe"')
driver.get(url)

And I got an error message

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 947, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1819, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'

I already intalled chromedriver and want to know how can I make the new chrome page appear any comments would be appreciated

hyun
  • 11
  • 1
  • Does this answer your question? [Python, error with web driver (Selenium)](https://stackoverflow.com/questions/39928515/python-error-with-web-driver-selenium) – Hedgy Nov 27 '20 at 05:18

0 Answers0