![](/style/images/good.png)
2
![](/style/images/bad.png)
Python爬虫编程思想(52):使用Beautiful Soup选择子节点
source link: https://blog.csdn.net/nokiaguy/article/details/120721729
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Python爬虫编程思想(52):使用Beautiful Soup选择子节点
专栏收录该内容
53 篇文章
2 订阅
¥29.90
¥99.00
目录
在选取节点时,并不是总能一次就将我们需要的节点都选取出来,有时可能需要分多步来完成,例如,第一步先选取一个节点中的所有子节点,第二步再从选取的这些子节点中利用某些规则选取出特定的子节点。这就要求可以获取某个特定节点的所有子节点。在Beautiful Soup中获取子节点分下面两种情况。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK