fix bug
This commit is contained in:
@@ -122,7 +122,7 @@ def get_ip(session: Any, github_url: str) -> Optional[str]:
|
|||||||
'06.0.0.0 Safari/537.36'}
|
'06.0.0.0 Safari/537.36'}
|
||||||
try:
|
try:
|
||||||
rs = session.get(url, headers=headers, timeout=5)
|
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"
|
pattern = r"\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b"
|
||||||
ip_list = re.findall(pattern, table.text)
|
ip_list = re.findall(pattern, table.text)
|
||||||
best_ip = get_best_ip(ip_list)
|
best_ip = get_best_ip(ip_list)
|
||||||
|
|||||||
Reference in New Issue
Block a user