def getHtmlOfUrl(url, **kwargs):
    """
    获取url对应的html文档，根据需要替换该方法
    """
    import requests
    res = requests.get(url, **kwargs)
    if res.status_code > 400:
        raise Exception(res.status_code)
    if res.cookies and 'cookies' in kwargs and type(kwargs['cookies']) == dict:
        kwargs['cookies'].update(res.cookies.get_dict())
    return res.text
