中文

CFSPIDERv1.8.0

Cloudflare Proxy Network

Node Code
YYZ
Country
US
City
Columbus
Continent
North America
Status
ONLINE
Version
1.8.0
// Node Details
Node Code YYZ
Country US
City Columbus
Region Ohio
ASN AS16509
Timezone America/New_York
Coordinates 39.96118, -82.99879
// Visitor Information
Visitor IP 216.73.216.120
Country US
ASN AS16509
Status ONLINE
300+ Global Edge Nodes
TLS Fingerprint Impersonate
Stealth Mode
HTTP/2 Support
Browser Automation
Session Consistency
IP ADDRESS TYPE Status LATENCY REGION
LOADING...

// API ENDPOINTS

GET /api/fetch?url=https://example.com
Proxy request and return content
GET /api/json?url=https://httpbin.org/ip
Proxy request and return JSON
GET /api/pool
Get proxy IP pool status
POST /proxy?url=...&method=GET
Python client proxy request
GET /api/status
Get service status
GET /debug
Get debug information
Response headers include X-CF-Colo and X-Response-Time

// Quick Install

pip install cfspider
# pip install cfspider[extract]
import cfspider

cf_proxies = "https://your-workers.dev"

# GET request with CF proxy
response = cfspider.get(
    "https://httpbin.org/ip",
    cf_proxies=cf_proxies
)
print(response.cf_colo)  # Cloudflare node code

# TLS fingerprint + stealth mode
response = cfspider.get(
    "https://example.com",
    impersonate="chrome131",
    stealth=True
)

# Data extraction (CSS/XPath/JSONPath)
title = response.find("h1")
links = response.find_all("a", attr="href")
data = response.pick(title="h1", links=("a", "href"))
data.save("output.csv")

# Batch requests with progress
urls = ["https://example.com/1", "https://example.com/2"]
results = cfspider.batch(urls, concurrency=10)
results.save("results.json")

# Async request (httpx)
response = await cfspider.aget(
    "https://httpbin.org/ip",
    cf_proxies=cf_proxies
)

# Browser automation (Playwright)
browser = cfspider.Browser()
html = browser.html("https://example.com")
browser.close()