-
Notifications
You must be signed in to change notification settings - Fork 0
Medium Crawler 개발 완료 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| sd ! Result(findArticle(body.utf8String)) | ||
| } | ||
| case resp@HttpResponse(code, _, _, _) => | ||
| log.info("Request failed, response code: " + code) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error로 로깅해야하지 않나요?
| resp.discardEntityBytes() | ||
| } | ||
|
|
||
| def encodeUrl(url: String) : String = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
몬가 이미 만들어진 라이브러리가 있을 법한 함수네요.
이미 만들어진게 없다면 공통 유틸리티로 빼주시면 다른 모듈에서도 사용할 수 있을 것 같네요.
| private val articleCrawler = | ||
| context.system.actorOf(Props[MediumArticleCrawler], name = "mediumArticleCrawler") | ||
|
|
||
| final implicit val materializer: ActorMaterializer = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
딱히 사용하는 곳은 없는 것 같은데, 어떤 역할을 하는 건가요??
| } | ||
| log.info("end of response ok") | ||
| case resp@HttpResponse(code, _, _, _) => | ||
| log.info("Request failed, response code: " + code) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이것도 error 아닐까욤??
|
PR을 받았는데 잊었던 건지.. 아님 못받은 건지... |
참고이슈 : funfunStudy/funfunnet#21
일단 medium 사이트는 샘플로 아래 3개 등록했습니다.