(python) the difference children and descendent in Beautiful.

If you have the next

<table>
  <tr> </tr>
 <tr> </tr>
 <tr> </tr>
 <tr> </tr>

   <table>
    <td></td>
    <td></td>
   </table>

</table>

If you call

bsobj.find("table").children

you can find only tr tags
but if you call descendants
you can find td tags

댓글

이 블로그의 인기 게시물

(네트워크)폴링방식 vs 롱 폴링방식

(ElasticSearch) 결과에서 순서 정렬

(18장) WebSocekt과 STOMP를 사용하여 메시징하기