random-tunnel
一款可以使用随机代理地址访问目标服务的turbo-tunnel插件
安装方法
$ pip3 install random-tunnel
使用方法
$ turbo-tunnel -l http+random://127.0.0.1:9999/?provider=${provider_url} -p random_tunnel
这样会在本地创建一个HTTPS代理服务器,客户端通过该代理服务器访问目标服务时,会随机使用${provider_url}指定的代理服务器列表中的某一个代理。
支持的provider类型
http/https
该url必须按照以下格式返回application/json类型的包体:
{
"results": [{
"ip": "1.2.3.4",
"port": 8080,
"type": "https"
}, {
"ip": "2.2.2.2",
"port": 8888,
"type": "https"
}]
}
同时,该url需要支持limit查询参数用于指定查询的条数。
file
本地文件方式,如:file:///data/proxies.txt。该文件需要将代理服务器以每行一个的形式存放,格式为:http://1.2.3.4:8080。
Metadata
Release files for random-tunnel 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| random-tunnel-0.1.1.tar.gz | 5.2 kB | Details |
Release files / random-tunnel-0.1.1.tar.gz
| Download URL | random-tunnel-0.1.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1024a68fea798983ece5f28e94048343fe0d18ed4a3c9826caa1a0cd5c447e98
|
|
BLAKE2b-256 checksum How to use checksums |
181d3c6436ab35b50ddbdffa104459990002cd47a26b2b0e7b10401ac4896a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.8
|