From 7638d0f79457683917b383a0444a342394d24eba Mon Sep 17 00:00:00 2001 From: xueweihan <595666367@qq.com> Date: Mon, 13 Mar 2023 09:41:28 +0800 Subject: [PATCH] fix bug --- fetch_ips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch_ips.py b/fetch_ips.py index 3a357490d..e852269fc 100644 --- a/fetch_ips.py +++ b/fetch_ips.py @@ -122,7 +122,7 @@ def get_ip(session: Any, github_url: str) -> Optional[str]: '06.0.0.0 Safari/537.36'} try: rs = session.get(url, headers=headers, timeout=5) - table = rs.html.find('#dns', first=True) + table = rs.html.find('ul.separated2', first=True) pattern = r"\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b" ip_list = re.findall(pattern, table.text) best_ip = get_best_ip(ip_list)