강의

멘토링

커뮤니티

Inflearn Community Q&A

yundosa2's profile image
yundosa2

asked

Introduction to Python and Creating Various Automated Applications Using Web Crawling

Hands-on Scraping and Parsing Without a Web Browser (1) - Inflearn

팬텀js 불러오기 오류입니다

Written on

·

767

0

module 'selenium.webdriver' has no attribute 'PhantomJS' 라고 뜹니다.

코드는  이렇게 했습니다.

from selenium import webdriver
driver = webdriver.PhantomJS('C:/Pythonsource/Workspace/Crawling/section3/복습/3-6(all)/phantomjs/bin/phantomjs')

웹-크롤링python

Answer 3

0

셀레늄 버전 4에서는 팬텀JS 지원을 종료했습니다. 팬텀JS사용하시려면 3버전으로 다운그레이드 후 사용가능합니다.

0

niceman님의 프로필 이미지
niceman
Instructor

중간에 한글이 들어가면 경로가 인식이 안되는 경우가 있습니다.

영문으로 변경해서 정확하게 다시 해보세요.

잘 안되시면 c:/폴더명으로 찾기 쉽게 해서 모듈을 불러오시면 됩니다.

0

highJoon님의 프로필 이미지
highJoon
Questioner

한글 없는 경로로 해봐도 그렇고 executive path 써봐도 안됩니다.

yundosa2's profile image
yundosa2

asked

Ask a question