''' Purpose: introducing the acquisition of web data -- determine the hidden super power of a CS 1112 person ''' # 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: ' ) ... # specify web folder of indicated person ... # specify link for super power web file of indicated person ... # get a connection to the web resource of interest ... # read stream to get its contents ... # decode contents into plain text form ... # text is the superpower of interest ...