hynnet / SSRSpeed

ShadowsocksR Batch Speed Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


SSRSpeed

Batch speed measuring tool based on Shadowsocks(R)

GitHub tag (latest SemVer) GitHub release

Links

Important Hint

Before you publicly release your speed test results, be sure to ask the node owner if they agree to the release to avoid unnecessary disputes.

  • SpeedTestNet is no longer supported.

Features

  • Support SpeedTestNet, Fast.com and socket download.
  • Support for exporting result as json and png.
  • Support batch import of configuration from GUI configuration file and SSPanel-v2, v3 subscription link.
  • Support for importing data from any Json export file and re-exporting files of the specified format.

Requirements

Universal dependency

  • Python >= 3.6
  • pillow
  • requests
  • pysocks

Linux dependency

Platform Support

  1. Windows 10 x64
  2. Ubuntu 18.04 LTS

Getting started

pip install -r requirements.txt or pip3 install -r requirements.txt

python .\main.py
Usage: main.py [options] arg1 arg2...

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -c GUICONFIG, --config=GUICONFIG
                        Load config generated by shadowsocksr-csharp.
  -u URL, --url=URL     Load ssr config from subscription url.
  -m TEST_METHOD, --method=TEST_METHOD
                        Select test method in [speedtestnet,fast,socket].
  -M TEST_MODE, --mode=TEST_MODE
                        Select test mode in [all,pingonly].
  --include             Filter nodes by group and remarks using keyword.
  --include-remark      Filter nodes by remarks using keyword.
  --include-group       Filter nodes by group name using keyword.
  --exclude             Exclude nodes by group and remarks using keyword.
  --exclude-group       Exclude nodes by group using keyword.
  --exclude-remark      Exclude nodes by remarks using keyword.
  -t PROXY_TYPE, --type=PROXY_TYPE
                        Select proxy type in [ssr,ss],default ssr.
  -y, --yes             Skip node list confirmation before test.
  -C RESULT_COLOR, --color=RESULT_COLOR
                    Set the colors when exporting images..
  -s SPLIT_COUNT, --split=SPLIT_COUNT
                        Set the number of nodes displayed in a single image
                        when exporting images.
  -S SORT_METHOD, --sort=SORT_METHOD
                        Select sort method in
                        [speed,rspeed,ping,rping],default not sorted.
  -i IMPORT_FILE, --import=IMPORT_FILE
                        Import test result from json file and export it.
  --debug               Run program in debug mode.

Example usage :

The parameter priority is as follows:

-i > -c > -u The above sequence indicates that if the parameter has a higher priority, the parameter will be used first, and other parameters will be ignored.

--include > --include-group > --include-remark --exclude > --exclude-group > --exclude-remark The above sequence indicates that node filtering will be performed in descending order of priority.

Advanced Usage

  • Rules
    • The program has a built-in rule matching mode that allows specific ISPs or nodes in specific regions to use specific speed sources through custom rules for "Socket" test mode.Rules need to be written in config.py. Please see config.py for more details.
  • Custom color
    • Users can customize the color of the resulting image in config.py. See the config.py file for sample configuration.

Developers

Acknowledgement

About

ShadowsocksR Batch Speed Tool

License:GNU General Public License v3.0


Languages

Language:Python 95.7%Language:Shell 3.7%Language:Roff 0.4%Language:Dockerfile 0.1%Language:Batchfile 0.0%Language:Makefile 0.0%