GithubHelp home page GithubHelp logo

tchigher / subconverter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tindy2013/subconverter

0.0 0.0 0.0 646 KB

Utility to convert between various subscription format

License: GNU General Public License v3.0

C++ 95.80% Shell 1.43% C 0.04% CMake 2.73%

subconverter's Introduction

subconverter

Utility to convert between various subscription format.

Build Status

中文文档

Support Type

Type As Source Type As Target Type Parameters
clash clash
clashr clashr
surge2 surge?ver=2
surge3 surge?ver=3
surge4 surge?ver=4
quantumult quan
quantumult X quanx
surfboard surfboard
ss ss
ssr ssr
ssd ssd
v2ray v2ray

Usage

http://127.0.0.1:25500/sub?target=clash&url=%URL_ENCODED_LINKS%

http://127.0.0.1:25500/sub?target=surge&ver=4&url=%URL_ENCODED_LINKS%

http://127.0.0.1:25500/sub?target=v2ray&url=%URL_ENCODED_LINKS%

Old interface

http://127.0.0.1:25500/clash?url=%URL_ENCODED_LINKS%

If you have multiple subscriptions, use '|' to separate the links before url encode.

e.g.

I have the following two subscriptions:
https://dler.cloud/subscribe/ABCDE?clash=vmess https://rich.cloud/subscribe/ABCDE?clash=vmess

separated by '|':
https://dler.cloud/subscribe/ABCDE?clash=vmess|https://rich.cloud/subscribe/ABCDE?clash=vmess

after url encode:
https%3A//dler.cloud/subscribe/ABCDE%3Fclash%3Dvmess%7Chttps%3A//rich.cloud/subscribe/ABCDE%3Fclash%3Dvmess

add to the back of the link:
http://127.0.0.1:25500/sub?target=clash&url=https%3A//dler.cloud/subscribe/ABCDE%3Fclash%3Dvmess%7Chttps%3A//rich.cloud/subscribe/ABCDE%3Fclash%3Dvmess

  🍖 Edible 🍖

  • Want to learn more postures? Come to pref.ini.

Recommended reading

pref.ini

common

api_mode

API mode, set to true to prevent loading local subscriptions or serving local files directly.

When the value is false, pref.ini is read every time the configuration is updated. When it is true, it is read only at startup.

default_url

Default URLs, used when no URL is provided in request, use "|" to separate multiple subscription links, supports local files/URL.

This usage:

default_url=https://dler.cloud/subscribe/ABCDE?clash=vmess

http://127.0.0.1:25500/clash

equivalent to:
http://127.0.0.1:25500/sub?target=clash&url=https%3A//dler.cloud/subscribe/ABCDE%3Fclash%3Dvmess

exclud_remarks

Exclude nodes which remarks match the following patterns. Supports regular expression.

e.g.

exclude_remarks=(Traffic|Time|Official Website|Products)

include_remarks

Only include nodes which remarks match the following patterns. Supports regular expression.

e.g.

include_remarks=(?<=美).*(BGP|GIA|IPLC)

clash_rule_base

Clash config base used by the generator, supports local files/URL.

e.g.

clash_rule_base=clash.yaml

clash_rule_base=https://raw.githubusercontent.com/ConnersHua/Profiles/master/Clash/Pro.yaml

surge_rule_base

Surge config base used by the generator, supports local files/URL.

surfboard_rule_base

Surfboard config base used by the generator, supports local files/URL.

rename_node

Rename remarks with the following patterns. Supports regular expression.

e.g.

rename_node=**@中
rename_node=深圳@深

managed_config

Append a '#!MANAGED-CONFIG' info to Surge configurations.

emojis

Rule to add emojis. Supports regular expression.

e.g.

rule=(流量|时间|应急),⌛time
rule=(美|美国|United States),🇺🇸

ruleset

Enable generating rules with rulesets.

e.g.

ruleset=🌹 YouTube, https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Media/YouTube.list

effect chart:

clash_proxy_group

Generate Clash Proxy Group with the following patterns. Node filterting rule supports regular expression.

e.g.

custom_proxy_group=🇺🇸US`url-test`(United States|United States|United States)`http://www.gstatic.com/generate_204`300

effect chart:

The ssr/v2 subscription does not have a group name by default. You can use this method to add a group name.

custom_proxy_group=g1`select`!!GROUPID=0
custom_proxy_group=g2`select`!!GROUPID=1
custom_proxy_group=v2ray`select`!!GROUP=V2RayProvider

server

listen

Address to bind on for Web Server.

port

Port to bind on for Web Server.

advanced

No description required.

gist

Automatically upload gist.

Add personal access token in gistconf.ini, add upload=true after the link will automatically upload gist after updating.

subconverter's People

Contributors

lm-firefly avatar redenvelopes avatar tindy2013 avatar tttpob avatar xylyxyrr 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.