code: def connect(self, agent='Python'):
          
          headers = {'User-Agent': agent}
          request = urlopen(Request(self.url, headers=headers))
          try:
              yield request
          finally:
              request.close()
docs: Context manager for HTTP Connection state and ensures proper handling
          of network sockets, sends a GET request.
  
          Exception is raised at the yield statement.
  
          :yield request: FileIO<Socket>