편집 기록

편집 기록
  • 프로필 nowp님의 편집
    날짜2020.01.08

    파이썬 크롤링 질문


    이미지

    그림 노란부분을 크롤링 하고 싶습니다.

    일단 HTML 까지는 파싱 했습니다만... 저 name 하고 value 가져다 출력하는 법을 모르겠습니다

    import time
    from selenium import webdriver
    from selenium.webdriver.support.ui import Select
    from bs4 import BeautifulSoup
    
    
    option_lists = driver.find_elements_by_css_selector('#contractInfo > tbody > tr:nth-child(2) > td:nth-child(3)')
    driver.implicitly_wait(1)
    html = driver.page_source
    soup = BeautifulSoup(html,'html.parser')
    
  • 프로필 알 수 없는 사용자님의 편집
    날짜2020.01.08

    파이썬 크롤링 질문


    이미지

    그림 노란부분을 크롤링 하고 싶습니다.

    일단 HTML 까지는 파싱 했습니다만... 저 name 하고 value 가져다 출력하는법을 모르겠습니다

    import time from selenium import webdriver from selenium.webdriver.support.ui import Select from bs4 import BeautifulSoup

    option_lists = driver.find_elements_by_css_selector('#contractInfo > tbody > tr:nth-child(2) > td:nth-child(3)') driver.implicitly_wait(1) html = driver.page_source soup = BeautifulSoup(html,'html.parser')