I want to extract attribute from within a HTML tag using beautifulsoup. How to do it ?
For Example:
<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> How do I get text from "aria-label" attribute ?
I tried using select() but it didn't help.