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 | 2011-05-31 19:57:38 | 35.14 | 86% |
5 | 2011-05-31 17:39:02 | 40.42 | 97% |
2 | 2011-05-31 17:33:33 | 38.36 | 92% |