A reader writes in to report that Accuweather has changed their Web page layout and the shell script from Wicked Cool Shell Scripts that returns the weather forecast (script #63, weather.sh), is broken.
He’s right, but amazingly, the fix is less than 25 characters long!
Instead of the embedded sed statement containing:
sed -n '/<font class="sevendayten">/,/[^[:digit:]]<\/font>/p' | \
it should now be replaced with:
sed -n '/Start - Forecast Cell/,/End - Forecast Cell/p'
That’s all there is to it.
Of course, this doesn’t mean that the scripts that are scraping Web sites from my book won’t break again as formats change, but that’s why it’s so helpful for you to try and step through the scripts so you can understand how the script parses the source and extracts the information needed.
And if something else does break, you can always contact me with specific questions!