Look up webpage at given url with optional query string

  Parameters
  ----------
    url : string
      Web url.

    urlQuery : dictionary [optional: default = None]
      Parameter to be passed to GET method of requests module

    utf8 : boolean [optional: default = True]
      Set response encoding

  Returns
  ----------
    string
      GET response text

def WebLookup(url, urlQuery=None, utf8=True):
  """
  Look up webpage at given url with optional query string

  Parameters
  ----------
    url : string
      Web url.

    urlQuery : dictionary [optional: default = None]
      Parameter to be passed to GET method of requests module

    utf8 : boolean [optional: default = True]
      Set response encoding

  Returns
  ----------
    string
      GET response text
  """

  goodlogging.Log.Info("UTIL", "Looking up info from URL:{0} with QUERY:{1})".format(url, urlQuery), verbosity=goodlogging.Verbosity.MINIMAL)
  response = requests.get(url, params=urlQuery)
  goodlogging.Log.Info("UTIL", "Full url: {0}".format(response.url), verbosity=goodlogging.Verbosity.MINIMAL)
  if utf8 is True:
    response.encoding = 'utf-8'
  if(response.status_code == requests.codes.ok):
    return(response.text)
  else:
    response.raise_for_status()