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 |
---|---|---|---|
13 | 2012-07-17 13:40:02 | 52.62 | 96% |
10 | 2012-07-17 13:35:15 | 54.68 | 93% |
9 | 2012-07-17 13:31:36 | 44.67 | 87% |