Skip to content

Python脚本实现Clash for windows自动切换国家节点

Notifications You must be signed in to change notification settings

allen746/auto_change_clash_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

auto_change_clash_proxy

1、脚本介绍

Python语言实现Clash for windows自动切换国家节点

2、脚本目的

当使用Python语言爬取网站并开启clash for windows时,ip即节点被ban后,实现Clash for windows自动切换国家节点

3、官方文档

https://clash.gitbook.io/doc/restful-api

4、配置

(1)查看port和secret 进入Clash for windows常规页面-->打开目录 image

5、查看selector 官方文档说明:切换 Selector 中选中的代理,当前接口只支持切换 Selector 中的代理 查看可以切换的Selector,进入Clash for windows常规页面,如下图

image image

6、实现结果

image

7、更新日志

20230519

增加获取当前代理的状态,切换不超时的国家节点 image

About

Python脚本实现Clash for windows自动切换国家节点

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages