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 daa88aa..eb5fccc 100644 --- a/SouP/src/main/java/Matching/SouP/crawler/okky/OkkyService.java +++ b/SouP/src/main/java/Matching/SouP/crawler/okky/OkkyService.java @@ -103,7 +103,6 @@ private int startPage(WebDriver driver, int start) throws StringIndexOutOfBounds try { String sNum = doc.select("#__next > main > div > div:nth-child(2) > div > div:nth-child(6) > div > ul > li:nth-child("+cnt+") > div > div.my-2 > a").attr("href").substring(10);//각 페이지 첫 글 num = Integer.parseInt(sNum); - System.out.println(num); }catch (StringIndexOutOfBoundsException | NullPointerException e){ cnt++; log.info("StringIndexOutOfBoundsException");