Skip to content
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

전시회 크롤링입니다 #14

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open

전시회 크롤링입니다 #14

wants to merge 44 commits into from

Conversation

ddnjs
Copy link

@ddnjs ddnjs commented Oct 31, 2023

"전시회명, 기간, 분야, 장소" 정도 통합해서 써볼수있을거같고
전시회에 맞는 컬럼으로 "주최" 정도 따로 고려해볼 수 있을거같습니다.

@ddnjs ddnjs self-assigned this Oct 31, 2023
public List<ObjectNode> exhibitionCrawling() {

//TODO 드라이버 경로 상황에 맞게 설정, 그에 따른 크롬 및 gradle 의존성 버전도 알맞게 수정
System.setProperty("webdriver.chrome.driver", "C:/Users/dong/Downloads/chromedriver-win64/chromedriver-win64/chromedriver.exe");
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분은 동원님 로컬에서만 동작을하겠군요. 흠 도커로 올릴때 크롬 드라이버도 추가해서 빌드하도록 설정이 필요해보이네요

Copy link
Author

Choose a reason for hiding this comment

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

네넵 맞습니다! 그렇게 진행되어야 할거같아요
제 로컬에서 돌릴때도 하... 의존성 추가하는부분이랑 맞물려서 아무튼... 저기만 본인 크롬브라우저에 맞는 버전으로 바꾸면 돌려볼수있긴합니다

driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(20));
}
//TODO driver.quit 에러 안나는 방법 서치
// driver.quit();
Copy link
Contributor

Choose a reason for hiding this comment

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

DB 통신할때 Connection 뚫고 나중에 끊는것처럼 try-with-resource 방법으로 하면 되지 않을까요?

Copy link
Author

Choose a reason for hiding this comment

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

옹.... 참고해서 바꿔보겠습니다!

@ddnjs ddnjs requested a review from pingu9 as a code owner November 18, 2023 09:27
Copy link

Unit Test Results

5 tests   5 ✔️  0s ⏱️
4 suites  0 💤
4 files    0

Results for commit c5ccd3c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants