Repository navigation
feat(funding): collect SEMAS policy funds from ols.semas.or.kr - #42
Merged
Merged
Conversation
Add the SEMAS policy fund collector to funding:sync, the crawled policy loan source of ADR 0006. - Read the policy fund overview table, the home page "정책자금 신청하기" status cards, the notice list (only to find notices) and notice details. Check robots.txt first, wait at least 1 second between requests, name the service and FUNDING_SYNC_CONTACT in the User-Agent, and stop on 403, 429 or a CAPTCHA page. - Make one LOAN product per fund row, identified by loan section and fund name. Mark a fund OPEN only when the home page shows it as "접수중" with no date contradiction. Keep variable or ambiguous rates unconfirmed, so no fund reaches repayment math. - Keep the SHA-256 of each crawled page on the evidence, and let validation accept web page checksums on automated products only. - Add ADR 0007 for the status source and fund-level identity, and record the first funding:sync run in ADR 0006. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #5
변경 내용
ADR 0006의 정책자금 크롤링 출처인 소진공 정책자금 사이트(
ols.semas.or.kr) 수집기를funding:sync에 등록했다. 수집 규칙과 ADR 0006과 다르게 정한 부분은 새 ADR 0007에 적었다.app/src/features/funding/sources/semas-ols.tsFUNDING_SYNC_CONTACT)를 밝힌다.대출구분:자금명이다(ADR 0007).validation.ts가 자동 상품의OFFICIAL_WEB_PAGE근거 checksum을 허용하도록 바꿨다.docs/domains/funding.md: 소진공 수집 규칙, 출처 표, 검증 규칙, 테스트 목록docs/DEVELOPMENT.md와app/.env.example:FUNDING_SYNC_CONTACTdocs/ARCHITECTURE.md검증
npm --prefix app run verify:fast: 통과(Vitest 299 passed / 41 skipped, skipped는 모두 DB·원본 대조 테스트).npm --prefix app run verify:db: 통과(334 passed / 6 skipped, 6개는data/raw/없는 원본 대조 테스트).npm --prefix app run verify: 통과(Vitest 334 passed / 6 skipped, E2E Playwright Chromium 6 passed). skipped 6개는data/raw/가 없어 건너뛴 상권 원본 대조 테스트다.funding:sync):trendbench-funding-catalog@2026-09-29.1ACTIVATEDsources/semas-ols.test.ts는 실제 페이지 구조를 줄인 HTML 조각 fixture를 쓴다. 다루는 것:위험·후속
FUNDING_SYNC_CONTACT가 없으면 소진공 출처는 실패로 기록된다. 정기 실행 위치는 #15에서 정한다.🤖 Generated with Claude Code