OK, so here's a better version of my batch file that records Coast To Coast AM on 740 KTRH here in Houston from iheartradio. You can modify the URL below to fit your own station preferences:
REM Downloads the XML file from iheartradio
REM
wget "http://p2.ktrh-am.ccomrcdn.com/player/player_dispatcher.html?section=radio&action=listen _live"
REM
REM Deletes the existing XML file
del ktrh-am.xml
REM
REM Renames the downloaded file to the correct format
ren "player_dispatcher.html@section=radio&action=liste n_live" ktrh-am.xml
REM
REM Gets the unique 68-character auth key from the XML file and sets it to a variable
for /f "delims=" %%a in ('sed -n "s/.*\(auth=......................................... ...........................\).*/\1/p" ktrh-am.xml') do @set ccam=%%a
REM
REM Builds the RTMP URL that gets passed to RTMPdump later below
set ktrh="rtmp://cp20100.live.edgefcs.net/live/Hou_TX_KTRH-AM_OR@s7890?%ccam%&aifp=1234&CHANNELID=2285&CPROG= _&MARKET=HOUSTON-TX&REQUESTOR=KTRH-AM&SERVER_NAME=p2.ktrh-am.ccomrcdn.com&SITE_ID=700&STATION_ID=KTRH-AM&MNM=1&TYPEOFPLAY=0"
REM
REM Downloads the show to an FLV file for 7200 seconds (two hours) and then stops
rtmpdump.exe -v -B 7200 -r %ktrh% -o D:\MP3\CoastToCoastAM\coasttocoastam.flv
REM
REM Part one of the MP3 conversion process; converts the FLV file to an AAC file
FLVExtractCL.exe -a -o D:\MP3\CoastToCoastAM\coasttocoastam.flv
REM
REM Part two of the MP3 conversion process; converts the AAC file to an MP3 file
ffmpeg -y -i D:\MP3\CoastToCoastAM\coasttocoastam.aac -ar 22050 -ab 32 -map_meta_data D:\MP3\CoastToCoastAM\coasttocoastam.mp3

:\MP3\Co astToCoastAM\coasttocoastam.aac D:\MP3\CoastToCoastAM\coasttocoastam.mp3
REM
REM Deletes the leftover AAC and FLV files
del D:\MP3\CoastToCoastAM\coasttocoastam.aac
del D:\MP3\CoastToCoastAM\coasttocoastam.flv
REM
REM Builds the current date and time so the MP3 can be renamed with the unique date and time.
FOR /F "TOKENS=1,2*" %%A IN ('DATE/T') DO SET DATE=%%B
REM
REM This changes the "/" to a "-" ---
SET DATE=%DATE:/=%
REM This grabs the time and sets it as a variable ---
FOR /F "TOKENS=*" %%A IN ('TIME/T') DO SET TIME=%%A
REM
REM This removes the ":" from the time stamp variable ---
SET TIME=%TIME::=%
SET TIME=%TIME: =%
REM
REM This sets concatenates both variables ---
set TODAY=%date%-%TIME%
REM
REM Renames the final MP3 file to an easily-recognizable format with the date appended to the filename
ren "D:\MP3\CoastToCoastAM\coasttocoastam.mp3" "coasttocoastam-%TODAY%.mp3"
A text copy of the batch file is also attached for convenience. Again, this method only works in Windows and is not the definitive perfect way to record iheartradio, but it works for what I need and I can schedule it to run automatically. You're all welcome to modify, improve, etc as needed.
Thanks!