ARRL MP3 downloads
#3
Yep I get that but that's a couple of hops that I need to script (sorry, didn't make that clear in my first post) and the site is very secure. Simple scripting does not cut it for this site. Most agencies have a bucket with all the MP3 files in them and it's a simple matter to find the most recent. Not so in this case because the "bucket" cannot be browsed.

Added in 29 minutes 16 seconds:
At the risk of derailing my own request I give you a snippet of the code I use to get the RSGB news. Sadly, every agency requires a different method to deliver their news.

Code:
lynx -source http://gb2rs.podbean.com/ > rsgbdump || error # Get the contents of the MP3 bucket
line=`cat rsgbdump | grep -i http://gb2rs.podbean.com/mf | head -n1 | sed 's/^.*http/http/' | sed 's/".*//'` # Get the path of latest MP3 file
wget --no-check-certificate -q -O ./rsgban.mp3 $line || error # Download the latest MP3 file

Now, I "could" guess at the latest filename and script for that but the ARRL doesn't always deliver a new broadcast every week so in my opinion it is better to grab the latest one available with the method above.
Lou
VK3ALB

I'll decide how I enjoy my hobby.



Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)