code: def urlread(url, encoding='utf8'):
      
      try:
          from urllib.request import urlopen
      except ImportError:
          from urllib2 import urlopen
      response = urlopen(url)
      content = response.read()
      content = content.decode(encoding)
      return content
docs: Read the content of an URL.
  
      Parameters
      ----------
      url : str
  
      Returns
      -------
      content : str