(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
<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
댓글
댓글 쓰기