def btn_start_get_click():
    global leech_site_info
    leech_site_info = maston.get_ini_raw("leech_site_info.ini")
    th_getproxy = threading.Thread(target=start_get_proxy_thread)
    th_getproxy.start()
    with open("proxy.ini", "w") as f_save_proxy:
        proxy_ini.write(f_save_proxy)

    allproxies_timeout = []
    for temp_proxy in re.split("\s+", valied_proxies_to_save):
        temp_temp = re.split("&", temp_proxy)
        try:
            allproxies_timeout.append((temp_temp[0], int(temp_temp[1])))
        except Exception:
            pass
    tree_proxies.delete_treeview()
    tree_proxies.add_data_treeview(allproxies_timeout)
    root.destroy()


check_site_info = maston.get_ini_raw("check_info.ini")
# 格式为{'site1_name':{'url':string, 'keyword':string, 'timeout':int}, ...}
leech_site_info = {}

proxies_list_locker = threading.Lock()
proxy_ini = configparser.ConfigParser()
proxy_checker_ini = configparser.ConfigParser()

try:
    proxy_checker_ini.read("proxy_checker.ini")
    num_valid_thread = int(proxy_checker_ini.get("system", "check_thread_num"))
    success_try = int(proxy_checker_ini.get("system", "success_try"))
    all_try = int(proxy_checker_ini.get("system", "all_try"))
except Exception as e1:
    num_valid_thread = 100
    success_try = 2