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 |
---|---|---|---|
22 | 2012-06-16 20:56:50 | 31.91 | 95% |
7 | 2012-03-13 14:35:47 | 32.53 | 92% |
2 | 2012-03-13 14:22:06 | 29.14 | 87% |