Python

Python

파이썬(selenium, beautiful soup)을 이용한 구글 크롤링(title, url)

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) #위에서 input을 한글로 받는데, 한글은 인터넷 기본 Url에서 사용하는 형식이 아니므로 quote_plus를 통해 바꿔줌 # '파이썬'이라고 입력했을 때 plusUrl 부분이 '파이썬'이라는 한글이 아닌 코드로 출력됨 https://www.google.com/search?q=%ED%8C%8C%EC%9D%B4%EC%8D%AC dr..

Python

파이썬 (selenium, beautiful soup) 구글 크롤링 시 발생하는 크롬 드라이버(driver) 오류

Exception has occurred: SessionNotCreatedException Message: session not created: This version of ChromeDriver only supports Chrome version 91 Current browser version is 90.0.4430.93 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe File "C:\Users\User\crawling\crawling.py", line 10, in driver = webdriver.Chrome() 파이썬 selenium을 이용해 크롤링할 때 발생하는 오류 : chrome driver 사용 시 현재 사용하는 ..

당찬 뱁새
'Python' 카테고리의 글 목록 (2 Page)