class URLLister(SGMLParser): def reset(self): SGMLParser.reset(self) self.urls = [] def start_a(self, attrs): href = [v for k, v in attrs if k=='href'] if href: self.urls.extend(href)
Game | Time | WPM | Accuracy |
---|---|---|---|
8 | 2012-05-04 13:39:33 | 43.59 | 93% |
5 | 2012-05-04 13:33:05 | 44.05 | 94% |
2 | 2012-05-04 13:24:05 | 39.04 | 88% |