Finding inline style with lxml.cssselector
Posted
by ropa
on Stack Overflow
See other posts from Stack Overflow
or by ropa
Published on 2010-04-12T02:21:06Z
Indexed on
2010/04/12
2:23 UTC
Read the original article
Hit count: 364
New to this library (no more familiar with BeautifulSoup either, sadly), trying to do something very simple (search by inline style):
<td style="padding: 20px">blah blah </td>
I just want to select all tds where style="padding: 20px", but I can't seem to figure it out. All the examples show how to select td, such as:
for col in page.cssselect('td'):
but that doesn't help me much.
© Stack Overflow or respective owner