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 |
---|---|---|---|
10 | 2013-12-06 15:16:52 | 66.55 | 93% |
5 | 2012-09-07 15:19:06 | 71.74 | 98% |
2 | 2012-09-07 13:59:07 | 55.38 | 91% |