(Python) CSS selector

body > div.container > div:nth-child(1) > div.col-md-9.content > ul:nth-child(3) > li:nth-child(15) > a


에서


nth-child는 지원을 하지 않는다. 그래서 다음과 같이 변경한다.

body > div.container > div:nth-of-type(1) > div.col-md-9.content > ul:nth-of-type(2) > li:nth-of-type(16) > a



이를 다음과 같이 변경가능하다.


div > div.col-md-9.content > ul > li > a




댓글

이 블로그의 인기 게시물

(Garbage Collection) Old Area의 Concurrent Mark-sweep 알고리즘

(Pytorch) DataLoder 클래스

(데이터베이스) HAVING절과 WHERE 절의 차이