I'd like to take a web-hosted xml podcast file and loop through, putting all the titles into a txt file matching the guid, ie abcd.mp3.txt
(or abcd.txt
) will contain This is the title
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<item>
<title>This is the title</title>
<enclosure url="http://www.example.com/abcd.mp3" length="402024" type="audio/mpeg"/>
<guid>http://www.example.com/abcd.mp3</guid>
I've SO'd the question and looked at xmlstarlet, xmlgrep, xmlsh. And then there's things like Osmosis which looks powerful but requires node and is lacking practical documentation. Ideally using as few external dependencies as possible (although Python 3.6 is installed).
After a morning at this I'm starting to wonder if I'm over-thinking/complicating things. Any pointers appreciated.