mirror of
https://github.com/violettoolssite/CFspider.git
synced 2026-04-05 03:09:01 +08:00
鍙戝竷 v1.6.0: 娣诲姞缃戦〉闀滃儚銆両P鍦板浘鍙鍖栥€乂LESS閾炬帴鏀寔
This commit is contained in:
13
test.py
13
test.py
@@ -1,7 +1,12 @@
|
||||
import cfspider
|
||||
import requests
|
||||
|
||||
worker_url = "ip.kami666.xyz"
|
||||
cf_response = cfspider.get("https://httpbin.org/ip", cf_proxies=worker_url)
|
||||
# 基本用法
|
||||
result = cfspider.mirror("https://www.baidu.com", open_browser=True)
|
||||
print(f"保存位置: {result.index_file}")
|
||||
|
||||
print(cf_response.text)
|
||||
# 指定保存目录
|
||||
result = cfspider.mirror(
|
||||
"https://www.baidu.com",
|
||||
save_dir="./my_mirror",
|
||||
open_browser=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user