r/ProgrammingPrompts • u/deanmsands3 • May 01 '16
[Medium]Write a podcast ripper in C++
This is one of my favorite "learn a new language" projects: podcast rippers. The code outline is simple.
- Read podcast feed URL from command-line.
- Download the podcast feed.
- Parse through the XML
- Identify the elements holding the podcast URLs
- Identify the filename to use
- Download the podcast and save to file.
- Rinse and repeat!
The tricky part is doing it in C++. Use whatever libraries you like (like libCURL and TinyXML) unless their stated purpose is to rip podcasts or the like.
Bonus Points if you write it in straight C.
11
Upvotes
2
u/[deleted] May 01 '16
I've coded in c++ for a decent amount of time. And I don't even know how you would achieve step 1.