chore: snapshot of work since 2026-10-05 (Stage 1 v.8, S2_00 v7.4/v7.5 handoff, S2_10 rewrite research v.2, 청구취지·요건사실 corpora)
Case_02_Comparison_Research - Stage 1 v.8: Part 1~4 YAMLs with R1~R3 patches, F-1/F-2 fixes, 피고과식별방지 prompt (defendant_qualification), dated backups, 실행검사/실패분석 reports - Stage 2 S2_00: v7.4 handoff (Task_S2_00_handoff, 경량화 전략서 + §2 개정) and v7.5 defendant qualification gate (피고관련작업_개정_S2_00.md), copies v.7/v.10/v.11, dated backups, 실행보고서/실패분석/결과물 리스트 - Stage 2 S2_10: v6/v7/v8 failure analyses, 재작성전략 10_06/10_08, case_kind_registry.json, 연구조사보고서_S2_10_재작성용.md (v.1), _추가.md (multi-claim methodology) and merged _v.2.md (claims[] 1~4, join PRELIMINARY/SELECTIVE/INDEPENDENT, V1~V6), S2_10_Test run outputs, 실행검사 v.10/v.11 - Stage_2 MEMORY.md / CLAUDE.md / work-history notes, AGENTS.md and README_KO.md updates Other corpora and tooling - Default_Agent_청구취지기재방법: 청구취지 규칙문서 전체 모음(원문·사건종류별·raw) and tmp drafts - 요건사실론: 사건종류별 문서(raw·filtered), plans, rf_draft - 판례모음, STT_앱구성_연구, API Crowdness 조사, update_numbers.py Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import subprocess, time, os, sys
|
||||
OUT="tmp/drf_말소폐쇄"
|
||||
os.makedirs(OUT, exist_ok=True)
|
||||
def fetch(name, url, params):
|
||||
path=os.path.join(OUT, name+".xml")
|
||||
if os.path.exists(path) and os.path.getsize(path)>2000:
|
||||
print("skip", name, os.path.getsize(path)); return
|
||||
args=["curl","-sS","-G","--http1.1","-A","Mozilla/5.0","--max-time","90","-o",path]
|
||||
for k,v in params.items():
|
||||
args += ["--data-urlencode", f"{k}={v}"]
|
||||
args.append(url)
|
||||
for attempt,delay in enumerate([0,12,24]):
|
||||
if delay: time.sleep(delay)
|
||||
r=subprocess.run(args, capture_output=True, text=True)
|
||||
if r.returncode==0 and os.path.exists(path) and os.path.getsize(path)>2000:
|
||||
print("ok", name, os.path.getsize(path)); return
|
||||
print("retry", name, r.returncode, r.stderr[:120], os.path.getsize(path) if os.path.exists(path) else -1)
|
||||
print("FAIL", name)
|
||||
|
||||
BASE="http://www.law.go.kr/DRF/lawService.do"
|
||||
SEARCH="http://www.law.go.kr/DRF/lawSearch.do"
|
||||
time.sleep(36)
|
||||
jobs=[
|
||||
("law_부동산등기법", BASE, {"OC":"test","target":"law","MST":"265377","type":"XML"}),
|
||||
("law_부동산등기규칙", BASE, {"OC":"test","target":"law","MST":"266847","type":"XML"}),
|
||||
("law_민법", BASE, {"OC":"test","target":"law","MST":"284415","type":"XML"}),
|
||||
("law_민사소송법", BASE, {"OC":"test","target":"law","MST":"252393","type":"XML"}),
|
||||
("law_민사집행법", BASE, {"OC":"test","target":"law","MST":"268837","type":"XML"}),
|
||||
("law_채무자회생법", BASE, {"OC":"test","target":"law","MST":"267359","type":"XML"}),
|
||||
]
|
||||
for i,(n,u,p) in enumerate(jobs):
|
||||
if i: time.sleep(8)
|
||||
fetch(n,u,p)
|
||||
Reference in New Issue
Block a user