Answer the question
In order to leave comments, you need to log in
How to extract page elements?
Decided to get a list of all tanks in the game from wotreplays.ru
from bs4 import BeautifulSoup as bs
import requests
soup = bs(requests.get('http://wotreplays.ru/').content)
foo = soup(tag='ul',class_='slider')
foo[0]
<ul class="slider">
<li ng-repeat="cbx in filter.data.tank.checkboxes" ng-show="cbx.show">
<input class="cbx" id="tank{{cbx.id}}" ng-change="filter.update('prevent tank slider update');" ng-model="cbx.checked" type="checkbox"/>
<label for="tank{{cbx.id}}">{{cbx.title}}</label>
</li>
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question