This is the code I have at the moment:
>>>p = []
>>>r = root.findall('.//*div/[@class="countdown closed"]/')
>>>r
'<abbr data-utime="1383624000" class="timestamp"/>'
>>>for i in r:
s = i.attrib
p.append(s['data-utime'])
>>>p
['1383624000']
s yields:
{'class': 'timestamp', 'data-utime': '1383624000'}
I think the code above is verbose(creating a list, using a for loop for only 1 string).
I know lxml is capable of achieving this more succinctly however I am unable to achieve this, I appreciate any assistance.