【发布时间】:2021-01-02 15:16:18
【问题描述】:
我有以下(简化的)html 代码:
<div class="container">
*other html*
</div>
<div class="container">
*html i need*
</div>
如何获取第二个 div 的信息?
【问题讨论】:
-
soup.find_all('div', class_='container')[1]? -
@AndrejKesely 我将其添加到我的答案中
标签: python html beautifulsoup discord discord.py