녕's BigData/Python 썸네일형 리스트형 파이썬 셀레니움 크롤링시 SessionNotCreatedException 에러 잘만 사용하던 코드가 갑자기 안먹었다. 문제는 SessionNotCreatedException 에러 SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 97 Current browser version is 100.0.4896.60 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe 어이가 없는건 패스 지정도 따로 해뒀고 그 패스에 있는 크롬드라이버를 97ver으로 다운받아서 넣어뒀으나 계속해서 SessionNotCreatedException가 발생함 그래서 크롬드라이버 매니저를 설치했다. 문제.. 더보기 [Python, 에러] TypeError: expected string or bytes-like object import re def clean(x): x = re.sub("\&\w*\;", "",str(x)) df['contents'].apply(lambda x: clean(x)) 정규표현식을 사용해서 문자 제거 도중 타입에러(TypeError) 발생 ! 변경 전 re.sub("\&\w*\;", "",x) 변경 후 re.sub("\&\w*\;", "",str(x)) x를 str(x)로 변경하였더니 에러가 해결되었다 ^o^ 더보기 이전 1 다음