# Script to read greeting from the web. from urllib.request import urlopen # Define url of webpage to read url = "http://facweb.cdm.depaul.edu/sjost/it212/greeting.htm" # Open input stream input_stream = urlopen(url) for line in input_stream: decoded_chars = line.decode("utf-8-sig").strip( ) print(decoded_chars) input_stream.close( )