This file contains 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
import java.io.BufferedInputStream; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.io.UnsupportedEncodingException; | |
import java.net.URL; | |
import java.net.URLConnection; |
This file contains 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 'uri' | |
str = "http://openapi.epost.go.kr/postal/retrieveLotNumberAdressService/" \ | |
+ "retrieveLotNumberAdressService/getComplexList?ServiceKey=" \ | |
+ "2zqJV8fgr%2BJFC6UecKgnO9uBAe0fQwJG3fZUsuMbiaQlVhxeSlLKtMhk5KOj6zz" \ | |
+ "%2BfXfgOVgi1OANTbWyHsf%2FIQ%3D%3D&srchwrd=" \ | |
+ '미수'.encode('EUC-KR') \ | |
+ "&areaNm=" \ |
This file contains 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 |
This file contains 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 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 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 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) |
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 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 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 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 |
OlderNewer