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 | 2017-03-20 00:36:38 | 40.89 | 93% |
7 | 2017-03-19 03:35:59 | 31.30 | 88% |
1 | 2017-03-18 22:01:18 | 24.56 | 85% |