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 |
---|---|---|---|
14 | 2012-03-01 00:17:02 | 57.48 | 97% |
13 | 2012-03-01 00:15:53 | 59.95 | 97% |
2 | 2012-01-28 21:16:40 | 50.60 | 95% |