• 카테고리

    질문 & 답변
  • 세부 분야

    업무 자동화

  • 해결 여부

    미해결

오류 관련 질문이요

20.05.25 04:29 작성 조회수 527

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()

이부분 대소문자가 잘못되었습니다.