전체 글

전체 글

    웹 크롤링 기록

    웹 크롤링 기록

    간단한 웹 크롤링 # urlopen해서 request값 가져오기 a = urllib.request.urlopen(url) # html을 python객체로 변환 soup = BeautifulSoup(a) # 특정 태그 찾기! # prodList = soup.find_all(lambda tag: tag.name == 'a' and tag.get('href') and tag.text) aList = soup.find_all("a", href=lambda href: href and "m_mall_list.php?ps_ctid=" in href) # href 파라미터 값 가져오기 id = parse.parse_qs(parse.urlparse(prod['href']).qu..

    geckodriver executable needs to be in PATH.

    geckodriver executable needs to be in PATH.

    browser = webdriver.Firefox() WebDriverException: Message: 'geckodriver' executable needs to be in PATH. geckodriver 파일 다운드 후 환경변수에 설정되어 있는 아나콘다 경로 Anaconda3/Scripts에 저장

    윈도우(Windows)에 Linux용 windows 하위 시스템(WSL) 실행

    윈도우(Windows)에 Linux용 windows 하위 시스템(WSL) 실행

    1. 제어판->프로그램 및 기능 - Windows 기능 켜기/끄기 클릭 - Linux용 windows 하위 시스템 체크 후 확인 - 컴퓨터 다시 시작 (업데이트 적용) 2. Microsoft Store 클릭 3. Linux 검색 후 원하는 앱 설치 (필자는 Ubuntu앱을 설치했습니다.) 4. 설치 후 실행하면 끝!