我可以帮助您翻译。这段内容是关于如何在使用beautifulsoup时从HTML标签中提取属性的问题。
例如:
如何获取“aria-label”属性中的文本?
我尝试使用select(),但没有帮助。
例如:
<div class="search-pagination-top clearfix mtop ">
<div class="row"><div class="col-l-4 mtop pagination-number" tabindex="0"
aria-label="Page 1 of 15 "><div>Page <b>1</b> of <b>15</b> </div></div>
如何获取“aria-label”属性中的文本?
我尝试使用select(),但没有帮助。