Skip to content

Commit

Permalink
hotfix: okky 크롤링 구조 변환(2) (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
in-seo authored Nov 21, 2023
2 parents 5e58826 + 800760d commit 4d61370
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4d61370

Please sign in to comment.