Git Product home page Git Product logo

parse_ssr_subscribe's Introduction

解析 SSR 订阅地址内容

基本功能

usage parse.py -s subscribe_url [OPTION]...
options
-l                  show server list. 显示服务器节点
-d                  run ss-local as dameon. 以 daemon 运行 ss-local
-u                  update subscribe. 更新订阅
-p                  local port	设置端口 (仅在 ss-local) 运行下有效
-n                  server name  查找指定节点 生成 json

自定义配置 ( parse.py 中修改地址)

_CONFIG = {}
_CONFIG['subscribe_url'] = '机场订阅地址'

默认所有服务器的 json 会保存在

_CONFIG['servers_path'] = '/usr/local/etc/ssr_AXF_servers.json'

显示服务器所有节点

rt@dell parse.py -l
parsing list.
http://bala.bala.bala
剩余流量:99.52% 1.33TB
过期时间:2019-2-21 00:37:13
V3-深圳香港CN2
...

生成某一个服务器节点的 json

rt@dell parse.py -n V3-深圳香港CN2
searching V3-深圳香港CN2
{
    "node_name": "xxx",
    "server": "xxx",
    "local_address": "xx",
    "local_port": xx,
    "timeout": x,
    "workers": x,
    "server_port": x,
    "protocol": "x",
    "method": "x",
    "obfs": "x",
    "password": "x",
    "obfs_param": "x",
    "protocol_param": "x"
}

更新订阅内容

rt@dell parse.py -u
retrive data from url....
retrive ok.
beging parsing....
剩余流量:99.52% 9.33TB 过期时间:2011-11-21 00:37:13

parse_ssr_subscribe's People

Contributors

rubbi5hthird avatar

Watchers

James Cloos 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.