В режиме отладки в браузере тег выглядит так:
<li class="link--white link--small ng-binding ng-scope active"
data-ng-click="pages.current != page ? replays.get({page: page}) : return"
data-ng-repeat="page in pages.arr"
data-ng-class="{active: page == pages.current}"> 1 </li>
Делаю:
from bs4 import BeautifulSoup as bs
import requests as r
url = 'some_url'
site = bs( r.get(url).content)
site.select('ul.pagination')
Получаю:
<li class="link--white link--small" data-ng-class="{active: page == pages.current}"
data-ng-click="pages.current != page ? replays.get({page: page}) : return"
data-ng-repeat="page in pages.arr"> {{page}} </li>
А как же мне из Python получить цифру внутри тега???