totopiahan / Weather_crawling_and_save_into_MySQL

파이썬 크롤링. 네이버에서 날씨정보를 가져와, 데이터 베이스에 저장을 해보자. Crawl weather data and save it into MySQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather_crawling_and_save_into_MySQL

사용방법

아래의 블로그에 자세하게 설명되어 있습니다.

https://blog.naver.com/and_lamyland/221246455230

  1. 기본적으로 MySQL이 설치되어 있고, 모듈이 import 되어 있다고 전제한다.

  2. 변수 my_passwd 에는 나중에 연결 할 MYSQL의 접속하고자 하는 user의 비밀번호를 적는다.

  3. 파이썬 파일을 IDLE 같은 툴로 running 시켜도 되고, 더블 클릭하여 콘솔 창으로 출력해도 된다. 2

  4. 매일 날씨 정보를 업데이트 하기 위해 Windows(OS)의 Task Scheduler를 사용한다. 사용 방법은 아래의 링크를 참조하자. http://fnmj.tistory.com/19

url은 다음과 같다. url = "http://weather.naver.com/rgn/cityWetrMain.nhn" 1

About

파이썬 크롤링. 네이버에서 날씨정보를 가져와, 데이터 베이스에 저장을 해보자. Crawl weather data and save it into MySQL

License:MIT License


Languages

Language:Python 100.0%