Code Monkey home page Code Monkey logo

configsplicing's Introduction

项目简介

用来生成 Surge/Clash 配置文件的 python 脚本。

实现功能

  • 支持不同类型的节点订阅链接(Surge、SS)
  • 支持同时输入多个节点订阅链接(相同类型或者不同类型)
  • 支持自定义规则链接
  • 支持为策略组添加节点
  • 支持修改策略组名字(有限)
  • 支持输出 Surge 或者 Clash 配置文件

使用方法

  • 下载或者克隆项目后,进入项目文件夹:

    # 例如
    cd ConfigSplicing
  • 安装依赖:

    pip3 install .
  • 输入命令:

    # 查看帮助
    cs --help
    
    Usage: cs [OPTIONS] [SUB_LINKS]...
    
      ConfigSplicing
    
    Options:
      -R, --rename            更改策略组名
      -c, --clash             输出Clash配置文件
      -r, --rule TEXT         规则链接(默认为神机规则)
      -i, --interval INTEGER  设置延迟组的间隔时间(默认1200)
      --help                  Show this message and exit.
    
    
    # 示例
    ## 不自定义规则链接
    cs ss_link1 ss_link2 
    ## 自定义规则链接
    cs -r rule_link ss_link1 ss_link2
    ## 输出为 clash 配置文件
    cs -r rule_link ss_link -c
    ## 输出为 clash 配置文件,并且需要更改策略组名字
    cs ss_link1 ss_link2 -c -R
  • 然后根据提示做完就可以了,能不能成功就随缘吧。:relieved:

configsplicing's People

Contributors

withdewhua avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.