There is a root element tbody
In this element there are tr, it is necessary to find tr, which have any id.
How to do this using a CSS selector or XPath. The absence of a class, for example, I know how to do it, but what about the presence of an id?
Markup example:
<tr id="cpu1422" role="row" class="tablesorter-hasChildRow odd" style="display: table-row;">....</tr> <tr class="tablesorter-childRow odd" role="row">...</tr> <tr id="cpu1423" role="row" class="tablesorter-hasChildRow even" style="display: table-row;">...</tr> <tr class="tablesorter-childRow even" role="row">...</tr> <tr id="cpu1490" role="row" class="tablesorter-hasChildRow odd" style="display: table-row;">....</tr> <tr class="tablesorter-childRow odd" role="row">...</tr> <tr id="cpu1769" role="row" class="tablesorter-hasChildRow even" style="display: table-row;">...</tr> They can be found either to take only odd order, or by style (I myself can do this). But I would like to try on id
BeautifulSoup. - Wiktor Stribiżew