[Python] NASA's astronomy picture of the day
just some simple python scripting + crontab
apod.py
|
|
Notes: this script will overwrite history downloads. Only the current APOD is kept on the disk. The filepath can be modified to the picture’s name or date to keep all pictures.
I used both urllib3 and urllib, which is kindda messy…
And here is a bash script that downloads picture and set wallpaper:
|
|
A crontab can be set like:
0 12 * * * nasa_bg
[+] click to leave a comment [+]
the comment system on this blog works via email. The button below will generate a mailto: link based on this page's url and invoke your email client - please edit the comment there! [optional] even better, encrypt the email with my public key - don't modify the subject field - specify a nickname, otherwise your comment will be shown as anonymous - your email address will not be disclosed - you agree that the comment is to be made public. - to take down a comment, send the request via email.>> SEND COMMENT <<