This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'timeout' | |
TIMEOUT_CNT = 42 | |
def print_header | |
puts 'no,name,address,contact,doctor' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'timeout' | |
TIMEOUT_CNT = 42 | |
def print_info code | |
retries = TIMEOUT_CNT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'timeout' | |
TIMEOUT_CNT = 42 | |
n = 1 # 500 # 1614 | |
begin | |
retries = TIMEOUT_CNT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'timeout' | |
TIMEOUT_CNT = 42 | |
n = 1 # 500 # 1614 | |
begin | |
retries = TIMEOUT_CNT |
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 42 columns, instead of 20 in line 3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
์ฝ๋,์ด๋ฆ,์ฃผ์,๋ณดํ๊ฐ์ ,์์ค์ ํ,์์ค์ธ์ฆ,์์คํน์ฑ,์ด๋ฆฐ์ด์ง๋ช ,์์ญ๋ณ ์ ์,์ด์ํํ,์ธ๊ฐ์ผ,์ธ์ฆ๊ฒฐ๊ณผ๋ฐํ,์ธ์ฆ์ ํจ๊ธฐ๊ฐ,์ ํ๋ฒํธ,์ข ํฉ ๊ฒฐ๊ณผ,์ง์ญ,ํตํ์ฐจ๋,์ ์,์๋ํ์,์ข ์ฌ์ํ์,์ด์ ,์๋,๊ฒฝ๋,0์ธ์ ๋ฐ,1์ธ์ ๋ฐ,2์ธ์ ๋ฐ,3์ธ์ ๋ฐ,4.5์ธ์ด์ ๋ฐ,4์ธ์ ๋ฐ,5์ธ์ ๋ฐ,๋๋ฆฌ์ฅ์ ์๋ฐ,๋ฐฉ๊ณผํ๋ฐ,์๋ฒฝ๋ฐ,์๊ฐ์ฐ์ฅ๋ฐ,์ผ์๋ณด์ก๋ฐ(0.2์ธ),์ฅ์ ์๋ฐฉ๊ณผํ๋ฐ,์ฅ์ ์์ข ์ผ๋ฐ,ํผํฉ๋ฐ(0.1์ธ),ํผํฉ๋ฐ(1.2์ธ),ํผํฉ๋ฐ(2.3์ธ),ํผํฉ๋ฐ(3.4์ธ ์ด์),ํด์ผ๋ฐ | |
code,name,address,insurances,category,certification,features,nursery_name,certification_area,size,granted_date,certification_date,certificatication_begin-thru,phone,result_point,region,bus,children_quota,children,staff,total_point,latitude,longitude,child0,child1,child2,child3,child4p,child4,child5,child_h,child_after,child_early,child_ext,child_tmp,child_h_after,child_h_all,child0_1,child1_2,child2_3,child3_4,child_off | |
11110000009,์ดํ์ด๋ฆฐ์ด์ง,์์ธํน๋ณ์ ์ข ๋ก๊ตฌ ์จ๊ณก๋ก20๊ธธ 3,์ํด (๊ฐ์ (์์ ๊ณต์ ํ)):ํ์ฌ (๊ฐ์ ):๋ฐฐ์ (๊ฐ์ (์์ ๊ณต์ ํ)),๋ฏผ๊ฐ,์ธ์ฆ์์ค(ํ๊ฐ์ธ์ฆ),์๊ฐ์ฐ์ฅํ:ํด์ผ๋ณด์ก,,,,2004-05-03,,,02-747-2686,,,์ด์(์ ๊ณ ),64,60,17,,37.57494521,127.0051251,7,14,18,9,12,0,0,0,0,0,31,0,0,0,0,0,0,0,22 | |
11110000011,์ผ์ฒญ์ด๋ฆฐ์ด์ง,์์ธํน๋ณ์ ์ข ๋ก๊ตฌ ์ผ์ฒญ๋ก7๊ธธ 26,์ํด (๊ฐ์ (์์ ๊ณต์ ํ)):ํ์ฌ (๊ฐ์ ):๋ฐฐ์ (๊ฐ์ (์์ ๊ณต์ ํ)),๊ตญ๊ณต๋ฆฝ,์ธ์ฆ์์ค(ํ๊ฐ์ธ์ฆ),์๊ฐ์ฐ์ฅํ,,,,1999-09-01,,,02-723-0155,,,๋ฏธ์ด์,32,31, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# ruby 1.9 | |
require 'net/smtp' | |
require 'tlsmail' | |
require "time" | |
require "base64" | |
def sendmails from, to, contents | |
begin | |
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'timeout' | |
TIMEOUT_CNT = 42 | |
#cd = '29200000641' | |
#cd = '11620000061' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'timeout' | |
TIMEOUT_CNT = 42 | |
#cd = '29200000641' | |
#cd = '11620000061' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'timeout' | |
TIMEOUT_CNT = 42 | |
cd = '29200000641' | |
#<ul class="nursry_search_list"> | |
#http://m.childcare.go.kr/nursery/mAllNurserySlPL.jsp?programId=null&flag=NSSlPL&offset=10000&ctprvn=11000&signgu=&dong=&road=&crtype=&crspec=&crcert=&crpub=&crname=&x=36&y=14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'timeout' | |
rt = 10 | |
begin # A | |
Timeout::timeout(5) { | |
# to do something | |
h_rt = 10 | |
begin # B | |
Timeout::timeout(5) { | |
# to do something |