I hereby claim:
- I am mint5auce on github.
- I am jonhadley (https://keybase.io/jonhadley) on keybase.
- I have a public key whose fingerprint is F624 8D71 AA37 51DE 32FB 4293 AA1A 0D96 CD65 27EE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# GetSDO.py | |
# | |
# A basic Python script to download the latest image from NASA's Solar Dynamics | |
# Observatory RSS feed. | |
# | |
# I use it to set the screensaver image source on my Mac | |
# | |
# More 'advanced' development will continue at: https://github.com/mint5auce/getSDO | |
# | |
# Requires: Universal Feed Parser (https://github.com/kurtmckee/feedparser |
import subprocess | |
import smtplib | |
import socket | |
from email.mime.text import MIMEText | |
import datetime | |
# Change to your own account information | |
to = 'me@example.com' | |
gmail_user = 'test@gmail.com' | |
gmail_password = 'yourpassword' | |
smtpserver = smtplib.SMTP('smtp.gmail.com', 587) |