socks5_list icon indicating copy to clipboard operation
socks5_list copied to clipboard

add getHttp.py

Open askDing opened this issue 5 years ago • 3 comments

automaiclly download from http://proxylist.fatezero.org and append to proxycahins.conf

askDing avatar Mar 17 '21 09:03 askDing

Proxies for Telegram: https://raw.githubusercontent.com/hookzof/socks5_list/master/tg/mtproto.json https://raw.githubusercontent.com/hookzof/socks5_list/master/tg/socks.json 这个什么软件使用

xinyi1984 avatar Sep 25 '23 08:09 xinyi1984

Proxies for Telegram: https://raw.githubusercontent.com/hookzof/socks5_list/master/tg/mtproto.json https://raw.githubusercontent.com/hookzof/socks5_list/master/tg/socks.json 这个什么软件使用

# 导入需要的库
import requests
import json

# 获取数据
response = requests.get('https://raw.githubusercontent.com/hookzof/socks5_list/master/tg/mtproto.json')

# 将获取的数据转换为Python列表
data = json.loads(response.text)

# 遍历列表
for item in data:
    # 取出每一项的host,port和secret
    host = item['host']
    port = item['port']
    secret = item['secret']
    
    # 生成对应的Telegram代理链接
    link = 'https://t.me/proxy?server={}&port={}&secret={}'.format(host, port, secret)
    
    # 打印生成的链接
    print(link)
    ```
    
    生成的tg代理,直接在tg点击就行,不过我也不知道如何测tg代理的速度

wwangyu2 avatar Apr 21 '24 08:04 wwangyu2