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-02-13 19:10:54 | 69.46 | 97% |
8 | 2013-02-13 19:07:01 | 54.20 | 91% |
2 | 2013-02-12 22:26:08 | 52.78 | 92% |