You are not logged in.
So far, I have managed to successfully download the latest picture from the APOD website (Astronomy Picture of the Day). However, I do not know how I would manage to extract the description below the image. For example, http://antwrp.gsfc.nasa.gov/apod/ap071225.html
The provided script downloads the latest image and saves it as apod.jpg
(improvements to the script are welcome)
#!/bin/bash
DATE='/bin/date +%y%m%d'
wget http://antwrp.gsfc.nasa.gov/apod/ap`$DATE`.html -O- 2> /dev/null |
grep -m 1 jpg |
sed -e 's/<//' -e 's/>//' -e 's/.*=//' -e 's/"//g' -e 's/^/http:\/\/antwrp.gsfc.nasa.gov\/apod\//' |
wget -i- -O apod.jpg
How would I download the accompanying description (using BASH if applicable)?
Offline
Just want to thank you for this. It still works! I am thinking of trying to pull the description text and overlay it using imagemagick.
Offline