Napiš si vlastní parser, stačí vytáhnout substring mezi <title>string</title>a pouzit jej na prejmenování souboru.