5
我有一个文件这样之间的兄弟节点:使用BeautifulSoup提取两个节点
<p class="top">I don't want this</p>
<p>I want this</p>
<table>
<!-- ... -->
</table>
<img ... />
<p> and all that stuff too</p>
<p class="end>But not this and nothing after it</p>
我想提取的P [CLASS =顶部]和P [CLASS =结束]段落之间的一切。
有没有一种很好的方式可以用BeautifulSoup做到这一点?