Python獲取Cloudflare反代IP

Python · 2023-12-26 · 134 人浏览

》》》Github項目地址

Cloudflare-logo-white-v-rgb.jpg

介紹:
通過指定的IP文件檢查是否爲反代Cloudflare的IP
環境:Python(需要安裝requests庫)
》》》Python安裝教程

1.

pip install requests 

2.

pip3 install requests 

脚本自動識別當前目錄下的 IPS.txt 文件,若不存在則手動輸入文件夾路徑,會批量讀取路徑下的所有文件,請保證格式正確。注意:路徑後面需要加 /
獲取cloudflare的反代IP,保存到 Success_IPS.txt
獲取失敗的IP,保存到 Fail_IPS.txt
探測失敗的IP,保存到 Continue_IPS.txt

靈感來源:Youtube影片

Python Cloudflare
本站立足于美利堅合衆國,請讀者自覺遵守當地法律!如有違規,本站不承擔任何法律責任! This site is based in the United States of America, readers are requested to abide by local laws! If there are any violations, this site does not bear any legal responsibility! Theme Jasmine by Kent Liao