''' Purpose: another example of reading from a web resource. see that certain steps are necessary each time we want to grab a web resource ''' # need help to get web data - so import some capabilities import urllib.request # define the base folder for course participants BASE_PEOPLE_URL = 'http://www.cs.virginia.edu/~cs1112/people/' # get computing id of interest reply = input( 'Enter computing id: ' ) id = reply.strip() id = id.lower() # specify web folder of indicated person web_folder = ... # specify link for web file of indicated person link = ... # get a connection to the web resource of interest stream = ... # read stream to get its contents contents = ... # decode contents into plain text form text = ... # text is the web file contents of interest print ...