code: def do_post(url, payload, to=3, use_json=True):
      
      try:
          if use_json:
              rs = requests.post(url, json=payload, timeout=to)
          else:
              rs = requests.post(url, data=payload, timeout=to)
          if rs.status_code == 200:
              log.warn(rs.text)
              return rs.json()
      except Exception as er:
          log.error('post to {} ({}) with err: {}'.format(url, payload, er))
          time.sleep(0.5)
      return {}
docs: 使用 ``request.get`` 从指定 url 获取数据
  
      :param use_json: 是否使用 ``json`` 格式, 如果是, 则可以直接使用字典, 否则需要先转换成字符串
      :type use_json: bool
      :param payload: 实际数据内容
      :type payload: dict
      :param url: ``接口地址``
      :type url:
      :param to: ``响应超时返回时间``
      :type to:
      :return: ``接口返回的数据``
      :rtype: dict