‘Parse RSS and Atom feeds in Python. 3000 unit tests. Open source.’ Mark Pilgrim’s feed parser goes to enormous lengths to extract useful information even from malformed files that would break normal XML parsers. Of course, by doing this it violates the first rule of XML parsing, but given that you often don’t have control over the code generating the feeds you want to consume, this is pragmatically the only way to a job done.