''' Purpose: print contents of a user-indicated web page ''' # need help to get web data - so import the capability from urllib.request import urlopen # get url link of interest reply = input( "Enter url: " ) # clean up the reply link = reply.strip() # get a connection to stream the web resource of interest stream = urlopen( link ) # read stream to gets its encoded contents encoding = stream.read() # decode contents into plain text form text = encoding.decode( "UTF-8" ) # get the lines that make up the text ... # print the lines one by one ...