The XMLTV-Tools project consists of several programs for grabbing and modifying XMLTV files.
For details please visit the WIKI pages