Skip to content

Conversation

@anselmo228
Copy link
Collaborator

📌 요약

  • Kopis API로 특정 기간 동안 진행되는 공연들을 한번에 불러오고 저장 및 분석하는 Batch Steps입니다.

📝 상세 내용

[완료된 사항]

  • Step1: Kopis로 부터 매달 1일 현재 시각으로 부터 앞으로 한달안에 진행되는 모든 공연을 불러와서 저장합니다.
    (현재는 10초마다 하루치만 가져오는 걸로 설정)

  • Step2: Step1에서 가져온 공연 데이터들의 상세 정보를 또 다시 KopisAPI로 요청합니다.

  • Step3: 각 공연마다 소개글(포스터) 이미지를 Flask서버로 보내어 OCR 진행 및 Clova API로 부터 카테고리를 전달 받습니다.

Screenshot 2024-10-24 at 12 34 46 PM

[추후 진행예정 사항]

  • Step4: 메인 DB에서의 카테고리 Mapping 진행
  • Step5: CSV파일에 공연 아이디 및 카테고리 추가

🗣️ 질문 및 이외 사항

  • 현재 Springboot내에서 API를 요청할떄 전부 RestTemplate으로 통일하려 하였으나 어떤 이유에서인지 오류가 발생하여 러프하게 Http Request를 직접 보내서 받아오는 방식과 합쳐서 사용하고 있습니다. 추후 수정할 수 있도록 하겠습니다.

☑️ 누구에게 리뷰를 요청할까요?

@anselmo228 anselmo228 added the documentation Improvements or additions to documentation label Oct 24, 2024
@anselmo228 anselmo228 requested a review from devkeon October 24, 2024 03:35
@anselmo228 anselmo228 self-assigned this Oct 24, 2024
@anselmo228 anselmo228 linked an issue Oct 24, 2024 that may be closed by this pull request
3 tasks
Copy link
Member

@devkeon devkeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우선 필요하다고 생각된 필드들은 다 있는 것 같네요 ㅎㅎ 만약 필요한 필드가 또 있으면 추후에 요청드리겠습니다!
고생 많으셨습니다! 확인했습니다!

Comment on lines +23 to +24
@Scheduled(cron = "10 * * * * *", zone = "Asia/Seoul")
//@Scheduled(cron = "0 0 0 1 * *", zone = "Asia/Seoul") -> 추후 한달 단위로 수정(매달 1일)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호 신기하네요

@devkeon devkeon merged commit 065bed0 into master Oct 24, 2024
@devkeon devkeon deleted the feature/공연정보API-호출-저장 branch October 24, 2024 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[✨FEATURE] Batch에서 공연 정보 API 호출 및 저장

3 participants