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 |
---|---|---|---|
25 | 2016-11-10 14:14:38 | 35.15 | 94% |
17 | 2016-11-08 12:41:06 | 27.67 | 93% |
7 | 2016-11-08 00:58:38 | 29.28 | 92% |