From 7ef4380398d254271acf5efe975a761a15229bf3 Mon Sep 17 00:00:00 2001 From: in-seo Date: Fri, 12 Jul 2024 14:10:38 +0900 Subject: [PATCH] hotfix: okky crawler in content (2) --- .../src/main/java/Matching/SouP/crawler/okky/OkkyService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SouP/src/main/java/Matching/SouP/crawler/okky/OkkyService.java b/SouP/src/main/java/Matching/SouP/crawler/okky/OkkyService.java index 2597fb0..c1c17b5 100644 --- a/SouP/src/main/java/Matching/SouP/crawler/okky/OkkyService.java +++ b/SouP/src/main/java/Matching/SouP/crawler/okky/OkkyService.java @@ -51,8 +51,8 @@ public void getOkkyPostData() { String link = "https://okky.kr/articles/"+num; Document realPost = click(driver, link); - String content = realPost.select("#__next > main > div > div:nth-child(2) > div > div:nth-child(2) > div:nth-child(2) > div:nth-child(3) > div > div > div").text(); - + String content = realPost.select("#__next > main > div > div:nth-child(2) > div > div:nth-child(3) > div:nth-child(2) > div:nth-child(3) > div > div > div").text(); + System.out.println(content); StringBuilder stack = CrawlerService.parseStack(postName,content); String talk = ""; talk = CrawlerService.parseTalk(content,talk);