I need to get all table rows on a page that contain a specific string 'abc123123' in them.
The string is inside a TD, but I need the entire TR if it contains the 'abc123123' anywhere inside.
I tried this:
userrows = s.findAll('tr', contents = re.compile('abc123123'))
I'm not sure if contents is the write property.
My html looks something like:
<tr>
<td>
</td>
<td><table>.... abc123123 </table><tr>
..
</tr>
<tr>
..
</tr>
..
..