s = """
<tbody>
<tr>
<td style="border-bottom: none">
<span class="graytext" style="font-weight: bold;"> Reply #3 - </span>
<span class="graytext" style="font-size: 11px">
05/13/09 2:02am
<br>
</span>
</td>
</tr>
</tbody>
"""
HTML文字列で、日付文字列を取り出す必要があります。
私はこのように試しました
import lxml
doc = lxml.html.fromstring(s)
doc.xpath('//span[@class="graytext" and @style="font-size: 11px"]')
しかし、これは機能していません。日付文字列だけを取る必要があります。