#!/usr/bin/python3 # shows with PyGame the NASA Image of the Day import os, pygame, pygame.locals, re, requests # dowload website text from earth observatory server u1 = "https://earthobservatory.nasa.gov/" u2 = "topic/image-of-the-day" try: rsp = requests.get(u1+u2) txt = rsp.text except requests.exceptions.RequestException as e: raise SystemExit(e) # save URL of image file and the image caption text rs = r'