Ccode/크롤링(crawling) 3

당일 주가 정보 크롤링

◎ 주식정보 크롤링¶ In [1]: # 라이브러리 불러오기 from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.chrome.options import Options from bs4 import BeautifulSoup import time import pandas as pd from ..

유튜브 댓글 크롤링(crawling)

◎ 유튜브 댓글 추출하기 쿼리¶ In [1]: # 라이브러리 불러오기 from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.chrome.options import Options from bs4 import BeautifulSoup import time import pandas as pd..

AP_CGV 사이트에서 영화 리뷰 crawling

쥬피터로 아래 파일을 열어 보시면 더 예쁘게 나와요~ 1. 상영 중인 영화 평점 추출하기¶ 1.1 원하는 웹페이지 선정하기¶ 국내 3대 메이저 영화관 개수 CGV는 171개 롯데시네마는 130개 메가박스는 101개 가장 인기있는 영화관은 CGV라 판단하여 CGV 웹페이지 선정!! In [1]: url = "http://www.cgv.co.kr/movies/" # CGV 웹페이지 들고오기 # 해당 페이지의 page source를 직접 가져옵니다. from urllib.request import urlopen # import requests 구문도 가능 source = urlopen(url).read() 1.2 beautifulsoup를 이용해서 태그에서 정보 가져오기¶ In [2]: import bs4 s..