g2g-crawling06: div.noresult-main-title

div.noresult-main-title 업데이트(20220304)

크롤링하는 페이지에 새로운 문제가 발생했다.

div.noresult-main-title 태그로 인해 server랑 currency 값을 불러올 수 없었다.

noresult

URL에서 가져올 수 있겠지만 우선 함수를 빠져나가는 방식으로 업데이트 했다.

1
2
3
4
5
6
def get_data():
...

if (soup.find("div", class_="noresult-main-title").string == "The offer you try to view is no longer available."):
driver.close()
return False

if return을 추가하니 해당 페이지가 정상 title로 복구됐다… 작동 확인도 못해봤다.

Author

Hangack

Posted on

2022-03-04

Updated on

2022-03-04

Licensed under

댓글