Files
CFspider/test.py

17 lines
393 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import cfspider
import os
# 禁用系统代理
os.environ['NO_PROXY'] = '*'
os.environ['no_proxy'] = '*'
# VLESS 模式测试(需要 UUID
res = cfspider.get(
"https://httpbin.org/ip",
cf_proxies="https://ip.kami666.xyz",
uuid="c373c80c-58e4-4e64-8db5-40096905ec58",
)
print(f"状态码: {res.status_code}")
print(f"出口 IP: {res.text}")
print(f"CF 节点: {res.cf_colo}")