Beispiel #1
0
 def _batches(self, txt):
     doc = HTML(txt)
     doc.done()
     t = doc.html.first('table', {'align': 'Center'})
     return [batch(row('td')[1])
             # skip heading row
             for row in t('tr')[1:]]
Beispiel #2
0
 def claims(self, batch):
     log.debug('claims: open (%s)', batch.href)
     doc = HTML(self.open(batch.href).get_data())
     doc.done()
     t = doc.html.first('table', {'align': 'Center'})
     return [claim(row) for row in t('tr')[1:]]