아래 삽입 코드를 선택 후 복사( Ctrl+C 또는 ⌘-C)하여 여러분 블로그나 기사의 HTML소스에 넣어 삽입하시면 됩니다.
<script src="https://editoy.com/posts/723.js"></script><noscript>https://editoy.com/posts/723 서울지하철 운행시각표 얻기<p>프로그램을 다 짜지 않더라도 운행시각표를 읽어서 데이터베이스화까지 완료하면 좋지 않을까 싶어서 정리.코레일 및 서울메트로 광역전철 1호선 (급행포함), 중앙선, 분당선, 경의선, 경춘선 등http://info.korail.com/servlets/renew.sta.sta01000.sw_sta01000_v1Svt#1;홈페이지에서 찾지 않아도 서울메트로 노선도 링크를 통하여 올 수 있다.광역전철 1호선 노선도는 다음과 같이 나뉘어 있다. 이중 서울메트로 구간을 전체 운행하는 노선은 경부-장항선, 경인-경원선 정도이고, 나머지는 별도로 분류할 수도 있을 것 같다.경부선 (천안 급행)경부, 장항선 (성북-천안-신창)경인, 경원선 (인천-소요산)경인선 (동인천 급행)광명셔틀 (영등포-광명)서울메트로 구간 2, 3, 4호선http://www.seoulmetro.co.kr/station/download.html 홈페이지의 '열차시각표' ;클릭, 우상단의 '다운로드' 클릭1호선은 코레일 광역 전철 노선도 링크로 가게 된다.3, 4호선은 코레일 광역전철 노선도 정보에 있는 것과 내용은 동일한 것으로 보이나, 코레일 시각표는 역 이름을 약어로 표시하므로 파싱하다가 빡칠 우려가 있다.4호선 시간표 중에 평일 상행으로 안산에서 출발하는 K4306, K4308, K4312 세 열차의 노선도에서 출발 시각만 있고 도착 시각만 있는 역은 통과역이다. (당고개행 급행으로 안산 ~ 금정 구간에서만 급행 운전을 한다)도시철도공사 구간 5, 6, 7, 8호선http://www.smrt.co.kr/program/board/list.jsp?menuID=001003001&boardTypeID=2 공지사항에서 열차를 키워드로 검색하면 시각표를 구할 수 있다.최신글은 2012-02-23에 작성된 봄철 운행시각표이며, 한 파일에 5~8호선이 모두 들어있음파싱을 위한 라이브러리NPOI 『 This project is the .NET version of POI Java project at http://poi.apache.org/. POI is an open source project which can help you read/write xls, doc, ppt files. It has a wide application. 』 NPOI [npoi.codeplex.com] Excel Data Reader 『 Lightweight and fast library written in C# for reading Microsoft Excel files ('97-2007) 』 Excel Data Reader - Read Excel files in .NET [exceldatareader.codeplex.com] OleDb Provider를 이용한 파싱권장: 기존의 Jet Database Engine 대신 사용할 수 있는 Access Database Engine;http://www.microsoft.com/download/en/details.aspx?id=13255 </noscript>
<script src="https://editoy.com/posts/723.js"></script><noscript>https://editoy.com/posts/723 서울지하철 운행시각표 얻기</noscript>
<iframe style="display: block; background: none repeat scroll 0% 0% transparent; border: medium none; overflow: hidden; width: 100%; height: 100%;" src="https://editoy.com/posts/723.embed" frameBorder=no ></iframe>
<div class="curation-body"><link href="https://editoy.com/static/media/style/curate.css" rel="stylesheet" type="text/css" /><font face="calibri, dotum"><span style="font-size: 14px; line-height: 200%;">프로그램을 다 짜지 않더라도 운행시각표를 읽어서 데이터베이스화까지 완료하면 좋지 않을까 싶어서 정리.</span></font><hr style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">코레일 및 서울메트로 광역전철 1호선 (급행포함), 중앙선, 분당선, 경의선, 경춘선 등</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><a href="http://info.korail.com/servlets/renew.sta.sta01000.sw_sta01000_v1Svt#1">http://info.korail.com/servlets/renew.sta.sta01000.sw_sta01000_v1Svt#1</a> </div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">홈페이지에서 찾지 않아도 서울메트로 노선도 링크를 통하여 올 수 있다.</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">광역전철 1호선 노선도는 다음과 같이 나뉘어 있다. 이중 서울메트로 구간을 전체 운행하는 노선은 경부-장항선, 경인-경원선 정도이고, 나머지는 별도로 분류할 수도 있을 것 같다.</div><div><ul><li><font face="calibri, dotum"><span style="font-size: 14px; line-height: 28px;">경부선 (천안 급행)</span></font></li><li><font face="calibri, dotum"><span style="font-size: 14px; line-height: 28px;">경부, 장항선 (성북-천안-신창)</span></font></li><li><font face="calibri, dotum"><span style="font-size: 14px; line-height: 28px;">경인, 경원선 (인천-소요산)</span></font></li><li><font face="calibri, dotum"><span style="font-size: 14px; line-height: 28px;">경인선 (동인천 급행)</span></font></li><li><font face="calibri, dotum"><span style="font-size: 14px; line-height: 28px;">광명셔틀 (영등포-광명)</span></font></li></ul></div><div><hr style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><span style="line-height: 200%; ">서울메트로 구간 2, 3, 4호선</span></div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><a href="http://www.seoulmetro.co.kr/station/download.html">http://www.seoulmetro.co.kr/station/download.html</a> </div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">홈페이지의 '열차시각표' 클릭, 우상단의 '다운로드' 클릭</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">1호선은 코레일 광역 전철 노선도 링크로 가게 된다.</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">3, 4호선은 코레일 광역전철 노선도 정보에 있는 것과 내용은 동일한 것으로 보이나, 코레일 시각표는 역 이름을 약어로 표시하므로 파싱하다가 빡칠 우려가 있다.</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">4호선 시간표 중에 평일 상행으로 안산에서 출발하는 K4306, K4308, K4312 세 열차의 노선도에서 출발 시각만 있고 도착 시각만 있는 역은 통과역이다. (당고개행 급행으로 안산 ~ 금정 구간에서만 급행 운전을 한다)</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "></div><hr style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><span style="line-height: 200%; ">도시철도공사 구간 5, 6, 7, 8호선</span></div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><a href="http://www.smrt.co.kr/program/board/list.jsp?menuID=001003001&boardTypeID=2">http://www.smrt.co.kr/program/board/list.jsp?menuID=001003001&boardTypeID=2</a> </div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">공지사항에서 열차를 키워드로 검색하면 시각표를 구할 수 있다.</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">최신글은 2012-02-23에 작성된 봄철 운행시각표이며, 한 파일에 5~8호선이 모두 들어있음</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><hr>파싱을 위한 라이브러리</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">NPOI</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><div class="news_item"> <div class="news_item_body">『 This project is the .NET version of POI Java project at http://poi.apache.org/. POI is an open source project which can help you read/write xls, doc, ppt files. It has a wide application. 』</div> <div class="news_item_subject"><img height="16" width="16" src="http://www.google.com/s2/favicons?domain=npoi.codeplex.com"><a href="http://npoi.codeplex.com/">NPOI</a> [npoi.codeplex.com]</div> <div class="clear"> </div> </div> <br></div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">Excel Data Reader</div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; "><div class="news_item"> <div class="news_item_body">『 Lightweight and fast library written in C# for reading Microsoft Excel files ('97-2007) 』</div> <div class="news_item_subject"><img height="16" width="16" src="http://www.google.com/s2/favicons?domain=exceldatareader.codeplex.com"><a href="http://exceldatareader.codeplex.com/">Excel Data Reader - Read Excel files in .NET</a> [exceldatareader.codeplex.com]</div> <div class="clear"> </div> </div> <br></div><div style="font-family: calibri, dotum; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 200%; ">OleDb Provider를 이용한 파싱</div><div><font face="calibri, dotum"><span style="font-size: 14px; line-height: 28px;">권장: 기존의 Jet Database Engine 대신 사용할 수 있는 Access Database Engine </span></font></div></div><div><a href="http://www.microsoft.com/download/en/details.aspx?id=13255">http://www.microsoft.com/download/en/details.aspx?id=13255</a> </div><div><font face="calibri, dotum"><span style="font-size: 14px; line-height: 28px;"><br></span></font></div><div class="editedby-logo"><a href="https://editoy.com/2bura"><img src="https://editoy.com/static/media/images/editoywith.png">2bura <img class="userthumb" width="32" src="http://api.twitter.com/1/users/profile_image?screen_name=2bura" alt="2bura's image" /></a></div></div>