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 |
---|---|---|---|
16 | 2013-08-22 18:00:06 | 36.36 | 90% |
11 | 2013-04-17 16:02:33 | 36.71 | 92% |
4 | 2013-04-16 21:06:28 | 29.26 | 87% |