인프런 커뮤니티 질문&답변
오류 관련 질문이요
작성
·
733
0
from urllib.parse import quote_plus
from bs4 import BeautifulSoup
from selenium import webdriver
baseUrl = 'https://www.google.com/search?q='
plusUrl = input('무엇을 검색할까요? :')
url = baseUrl + quote_plus(plusUrl)
driver = webdriver.chrome()
driver.get(url)
File "c:/Users/JunDragon/Desktop/PythonWorkspace/pyauto/google.py", line 9, in <module> driver = webdriver.chrome() TypeError: 'module' object is not callable
그안에 크롬 드라이버가 있는데
이라는 에러가 뜨는데 어떻게 해결하나요 ?
답변 1
0
김플
지식공유자
에러 메세지와 강의를 확인해보세요.
line 9, in <module> driver = webdriver.chrome() TypeError: 'module' object is not callable
에러메세지에서 친절하게 어디가 잘못되었는지 알려주고 있습니다.
driver = webdriver.chrome()
이부분 대소문자가 잘못되었습니다.





