def links(lis):
for li in lis:
yield li.findAll('a')[0]