HTML6 [Python_HTML] 예제 - 웹 자동 검색 from selenium import webdriver from selenium.webdriver.common.keys import Keys from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install()) try: driver.get('https://search.naver.com/') elem = driver.find_element_by_id('query') elem.send_keys('텐핑') elem.send_keys(Keys.RETURN) elem = driver.find_element_by_class_name('company_area') print(elem.. 2021. 3. 4. [Python_HTML] 파이썬 웹 크롤링 from selenium import webdriver from selenium.webdriver.common.keys import Keys from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install()) try: for i in range(1,11): url = 'https://naver.com/BlogHome.nhn?directoryNo=0¤tPage='+str(i)+'&groupId=0' driver.get(url) elem = driver.find_element_by_class_name('list_post_article') print(elem.t.. 2021. 3. 4. 이전 1 2 다음