def analyze(c_id, html): basic_info = {} if html: basic_info = get_basic_info(html) if not utils.is_dict_none(basic_info): basic_info["is_parse"] = 1 else: basic_info["is_parse"] = -1 basic_info["c_id"] = c_id return basic_info