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-11-13 22:10:40 | 33.11 | 90% |
16 | 2012-11-12 23:08:31 | 41.17 | 94% |
7 | 2012-11-12 01:55:19 | 38.73 | 93% |