Giter Site home page Giter Site logo

v2ray2clash's Introduction

V2ray2Clash

说明 : 本脚本提供解析v2ray订阅链接为Clash配置文件的自动化,供学习交流使用.

参数 :

 1. url=订阅地址
 2. user_path=用户~的路径[cd ~  -> pwd 查看]
 3. net_config=规则策略.

使用说明:

 1. 安装python : 
      - [Arch]: sudo pacman -S python 
      - [Ubuntu]: sudo apt install python3 
      - [Centos]: sudo yum install python3
 2. 填写订阅地址和用户路径
 3. 执行命令 (python3 ./v2ray.py)

Linux自动化更新订阅:

 - 输入crontab -e编辑定时任务
 - 模板: [cron表达式] [python路径] [脚本路径] > [输出日志路径]    
 - 例子: 0 0 18 * * ? /usr/bin/python3.8 ~/v2ray.py > ~/auto.log
 - Arch系也可通过:[cron表达式] systemctl restart clash.service[需自行设置]设置定时任务.在更新订阅后重启Clash-linux 

v2ray2clash's People

Contributors

roiocam 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.