GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - boysye/subconverter: Utility to convert between various subscription format

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
rules
rules
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README-cn.md
README-cn.md
 
 
README.md
README.md
 
 
build.alpine.release.sh
build.alpine.release.sh
 
 
build.clang.sh
build.clang.sh
 
 
build.macos.release.sh
build.macos.release.sh
 
 
config.termux.sh
config.termux.sh
 
 
forcerule.yml
forcerule.yml
 
 
gistconf.ini
gistconf.ini
 
 
ini_reader.h
ini_reader.h
 
 
logger.cpp
logger.cpp
 
 
logger.h
logger.h
 
 
main.cpp
main.cpp
 
 
mellow.conf
mellow.conf
 
 
misc.cpp
misc.cpp
 
 
misc.h
misc.h
 
 
multithread.cpp
multithread.cpp
 
 
multithread.h
multithread.h
 
 
nodeinfo.h
nodeinfo.h
 
 
nodemanip.cpp
nodemanip.cpp
 
 
nodemanip.h
nodemanip.h
 
 
pref.ini
pref.ini
 
 
printout.h
printout.h
 
 
rapidjson_extra.cpp
rapidjson_extra.cpp
 
 
rapidjson_extra.h
rapidjson_extra.h
 
 
simple_base.yml
simple_base.yml
 
 
socket.h
socket.h
 
 
speedtestutil.cpp
speedtestutil.cpp
 
 
speedtestutil.h
speedtestutil.h
 
 
subexport.cpp
subexport.cpp
 
 
subexport.h
subexport.h
 
 
surfboard.conf
surfboard.conf
 
 
surge.conf
surge.conf
 
 
webget.cpp
webget.cpp
 
 
webget.h
webget.h
 
 
webserver.cpp
webserver.cpp
 
 
webserver.h
webserver.h
 
 
webserver_libevent.cpp
webserver_libevent.cpp
 
 

Repository files navigation

subconverter

Utility to convert between various subscription format.

Build Status

中文文档

  • subconverter
    • Support Type
    • Usage
      • Old interface
    • Recommended reading
    • pref.ini
      • common
        • api_mode
        • default_url
        • exclud_remarks
        • include_remarks
        • clash_rule_base
        • surge_rule_base
        • surfboard_rule_base
        • rename_node
      • managed_config
      • emojis
      • ruleset
      • clash_proxy_group
      • server
        • listen
        • port
      • advanced
    • gist

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

  • 📜 Regular Expression 📜
  • 📝 yaml syntax introduction 📝
  • ❔ Wisdom to ask questions ❔

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.

About

Utility to convert between various subscription format

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.