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 | 2013-03-12 22:00:24 | 41.23 | 95% |
4 | 2013-03-12 21:44:12 | 38.32 | 92% |
3 | 2013-03-12 21:42:40 | 41.11 | 95% |