使用 Python 自动获取一些可用于 Clash for Windows、Clash for Android 等应用的配置文件。
警告:通过使用特殊方式访问外网时请严格遵守当地法律法规,禁止借此进行传播“黄、赌、毒”等违法犯罪活动。节点均来自网络收集,由网友免费提供,请勿使用节点进行 BT 下载。
- 进入
Settings
->Personal access tokens
设置。 - 点击
Generate new token
。 - 输入密码并点击
Confirm passwrod
。 - 至少勾选
repo
、workflow
、gist
项。 - 点击
Generate token
并复制Token
。 Fork
本仓库。- 进入你
Fork
的仓库。 - 进入仓库
Settings
页面。 - 找到并进入
Security
->Secrets
->Actions
分页。 - 点击
New repository secret
。 Name
为ACCESS TOKEN
,Value
为刚刚复制的Token
。- 点击
Add secret
。 - 进入
Actions
页面。 - 选择任意一个
workflow
。 - 右侧点击
Run workflow
。 - 等待脚本执行完成。
- 前往
Release
页面。 - 下载
Profile for Clash Auto Getter.zip
。 - 解压
Profile for Clash Auto Getter.zip
。 - 根据系统双击
run
脚本运行。- Linux or macOS:运行
run.sh
。 - Windows:运行
run.ps1
。
- Linux or macOS:运行
-
克隆本项目。
git clone https://github.com/Shuery-Shuai/Profiles_for_Clash.git
-
进入
auto_getter
目录。cd ./Profiles_for_Clash/auto-getter
-
安装 Python 依赖包。
pip install -r requirements.txt
-
运行脚本
python ./main.py
-
等待脚本运行完成。
即在运行脚本前根据脚本设置设置项目后运行本项目。