Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awesome-vpn/awesome-vpn
/ functions
Functions
122 in github.com/awesome-vpn/awesome-vpn
⨍
Functions
122
◇
Types & classes
6
↓ 20 callers
Function
to_clash_proxy
Convert a sing-box outbound dict to Clash proxy dict.
core/converters/clash.py:9
↓ 9 callers
Method
close
(self)
core/geo_utils.py:124
↓ 4 callers
Method
extract_links
Extract proxy links from arbitrary text (HTML, Markdown, etc.)
core/spider.py:93
↓ 3 callers
Function
to_clash_proxies
Convert a list of sing-box nodes to Clash proxies with unique names.
core/converters/clash.py:196
↓ 2 callers
Function
apply_source_filters
(links, options)
main.py:79
↓ 2 callers
Method
close
(self)
core/parsers/tool.py:330
↓ 2 callers
Method
connect
(self)
core/parsers/tool.py:311
↓ 2 callers
Method
fetch_url
(self, url, timeout=None)
core/spider.py:27
↓ 2 callers
Method
parse_subscription
Parse content that might be base64 encoded or plain text list
core/spider.py:184
↓ 2 callers
Function
resolve_date_url
(url)
main.py:97
↓ 1 callers
Method
_build_dns_query
构造 DNS A 记录查询包
core/validator.py:220
↓ 1 callers
Method
_clash_proxy_to_link
(self, proxy)
core/spider.py:222
↓ 1 callers
Method
_download_content
(self, response)
core/spider.py:38
↓ 1 callers
Method
_download_with_retry
(self, url, target_path, binary_name, max_retries=3)
core/binary_manager.py:103
↓ 1 callers
Method
_fetch_geo_info
Perform the actual geo lookup (no caching).
core/geo_utils.py:66
↓ 1 callers
Method
_find_sing_box
(self)
core/validator.py:84
↓ 1 callers
Method
_get_download_url
(self, version, system, machine)
core/binary_manager.py:87
↓ 1 callers
Method
_get_latest_version
(self)
core/binary_manager.py:68
↓ 1 callers
Method
_get_original_ip
获取当前机器的真实IP(不经过代理)
core/validator.py:68
↓ 1 callers
Function
_get_unique_port
让 OS 分配一个空闲端口,避免与 ephemeral 端口范围冲突
core/validator.py:36
↓ 1 callers
Method
_hysteria2_to_link
(self, p)
core/spider.py:330
↓ 1 callers
Method
_init_reader
(self)
core/geo_utils.py:44
↓ 1 callers
Method
_parse_clash_proxies
(self, proxies)
core/spider.py:211
↓ 1 callers
Method
_parse_dns_response
解析 DNS 响应获取第一个 A 记录 IP
core/validator.py:226
↓ 1 callers
Method
_resolve_to_ip
(self, host)
core/geo_utils.py:55
↓ 1 callers
Method
_ss_to_link
(self, p)
core/spider.py:300
↓ 1 callers
Method
_trojan_to_link
(self, p)
core/spider.py:309
↓ 1 callers
Method
_vless_to_link
(self, p)
core/spider.py:272
↓ 1 callers
Method
_vmess_to_link
(self, p)
core/spider.py:238
↓ 1 callers
Method
_wait_for_socks5_ready
Poll until sing-box SOCKS5 port accepts connections (replaces sleep).
core/validator.py:120
↓ 1 callers
Method
calculate_hash
Calculates a hash for the node based on AutoMergePublicNodes logic. Uses SHA256 for stability across runs.
core/deduplicator.py:41
↓ 1 callers
Function
checkKeywords
(keywords,str)
core/parsers/tool.py:226
↓ 1 callers
Method
check_dns_via_proxy
通过 SOCKS5 代理的 TCP DNS 检查域名解析
core/validator.py:181
↓ 1 callers
Method
check_udp_dns_via_socks5
通过 SOCKS5 UDP ASSOCIATE 测试 UDP 转发 构造 DNS 查询包测试 8.8.8.8:53
core/validator.py:131
↓ 1 callers
Function
expand_sources_list
(list_path, spider)
main.py:104
↓ 1 callers
Method
fetch_telegram
(self, channel)
core/spider.py:142
↓ 1 callers
Method
fetch_urls_parallel
(self, urls, max_workers=None)
core/spider.py:79
↓ 1 callers
Method
format_node_name
(self, host)
core/geo_utils.py:118
↓ 1 callers
Method
get_geo_info
Get geo information for a host, with in-memory caching. Thread-safe: safe to call from multiple threads simultaneously. Retur
core/geo_utils.py:102
↓ 1 callers
Function
get_parser
(protocol)
main.py:55
↓ 1 callers
Method
get_singbox_path
(self)
core/binary_manager.py:14
↓ 1 callers
Method
is_duplicate
Checks if the node is a duplicate based on a complex hash (type, server, port, path/uuid). Returns True if duplicate, False otherwise
core/deduplicator.py:9
↓ 1 callers
Method
is_redundant_server
Checks if the server:port has already been seen. Returns True if redundant, False otherwise.
core/deduplicator.py:20
↓ 1 callers
Function
main
()
main.py:157
↓ 1 callers
Function
parse_source_params
(param_str)
main.py:59
↓ 1 callers
Function
quick_tcp_prescreen
P1: 快速 TCP 连通性预筛选(仅对 TCP 协议节点) 在 sing-box 验证前快速排除不通的节点,大幅缩短总验证时间 注意:UDP 协议节点(hysteria2/tuic)跳过 TCP 预筛选,直接进入完整验证
core/validator.py:463
↓ 1 callers
Method
tcp_ping
(self, host, port, timeout=3)
core/validator.py:113
↓ 1 callers
Method
validate_nodes_parallel
(self, nodes, timeout=5, max_workers=50)
core/validator.py:263
Method
__init__
(self, sing_box_path=None, local_mode=False)
core/validator.py:47
Method
__init__
(self, max_workers=10, timeout=15)
core/spider.py:16
Method
__init__
(self, base_dir)
core/binary_manager.py:9
Method
__init__
(self)
core/deduplicator.py:5
Method
__init__
(self, mmdb_path)
core/geo_utils.py:37
Method
__init__
(self,server:dict)
core/parsers/tool.py:305
Function
_convert_hysteria2
(node: Dict[str, Any])
core/converters/clash.py:151
Function
_convert_shadowsocks
(node: Dict[str, Any])
core/converters/clash.py:109
Function
_convert_trojan
(node: Dict[str, Any])
core/converters/clash.py:120
Function
_convert_tuic
(node: Dict[str, Any])
core/converters/clash.py:167
Function
_convert_vless
(node: Dict[str, Any])
core/converters/clash.py:53
Function
_convert_vmess
(node: Dict[str, Any])
core/converters/clash.py:19
Function
_fetch_channel
(channel)
main.py:266
Function
b64Decode
(str)
core/parsers/tool.py:167
Function
clash2v2ray
(share_link)
core/parsers/clash2base64.py:4
Method
execCMD
(self,command:str)
core/parsers/tool.py:318
Method
extract_subscription_links
Extract HTTP/HTTPS links that might be subscription sources
core/spider.py:128
Function
filterNodes
(nodelist,keywords)
core/parsers/tool.py:234
Function
firstLine
(data)
core/parsers/tool.py:190
Function
genName
(length=8)
core/parsers/tool.py:197
Method
getFile
(self,remote:str,local:str)
core/parsers/tool.py:326
Function
getResponse
(url, custom_user_agent=None)
core/parsers/tool.py:288
Function
get_encoding
(file)
core/parsers/tool.py:3
Function
get_protocol
(s)
core/parsers/tool.py:206
Method
is_fake_node
(self, node)
core/spider.py:345
Function
is_ip
(str)
core/parsers/tool.py:203
Function
noblankLine
(data)
core/parsers/tool.py:178
Function
parse
(data)
core/parsers/vmess.py:4
Function
parse
(data)
core/parsers/trojan.py:4
Function
parse
(data)
core/parsers/https.py:3
Function
parse
(data)
core/parsers/ssr.py:2
Function
parse
(data)
core/parsers/tuic.py:4
Function
parse
(data)
core/parsers/vless.py:4
Function
parse
(data)
core/parsers/hysteria2.py:5
Function
parse
(data)
core/parsers/socks.py:3
Function
parse
(data)
core/parsers/anytls.py:4
Function
parse
(data)
core/parsers/http.py:3
Function
parse
(data)
core/parsers/hysteria.py:4
Function
parse
(data)
core/parsers/wg.py:4
Function
parse
(data)
core/parsers/ss.py:4
Function
parse_link_simple
(link)
main.py:303
Function
prefixStr
(nodelist,prestr)
core/parsers/tool.py:283
Function
proDuplicateNodeName
(nodes)
core/parsers/tool.py:254
Function
readFile
(path)
core/parsers/tool.py:172
Function
removeNodes
(nodelist)
core/parsers/tool.py:266
Function
rename
(input_str)
core/parsers/tool.py:156
Function
replaceStr
(nodelist,keywords)
core/parsers/tool.py:246
Method
reset
(self)
core/deduplicator.py:37
Function
resolve_geo
(item)
main.py:380
Function
saveFile
(path,content)
core/parsers/tool.py:7
Function
tcp_check
(node)
core/validator.py:485
Function
test_hysteria2_alias
Ensure 'hy2' type alias maps to hysteria2 converter.
tests/test_clash_converter.py:199
next →
1–100 of 122, ranked by callers