Python - Web Scraping 연습

Nina·2020년 9월 26일
0
post-thumbnail

1. 날씨 스크래핑

(1) 라이브러리 설치

스크래핑에 필요한 라이브러리를 설치한다

pip install BeautifulSoup4
pip install requests
pip install pandas

(2) 스크래핑

디렉토리에 파이썬 파일을 생성한 후 스크래핑

weather_stuff.to_csv('weather_newyork.csv')

로 csv 파일을 생성하였고, 다음과 같이 생성된 csv파일을 확인할 수 있다.

2. 스타벅스 메뉴 스크래핑

(1) 라이브러리 설치

pip install selenium
pip install pandas

(2) 스크래핑


3. 빌보드 핫100 스크래핑


profile
https://dev.to/ninahwang

0개의 댓글