Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add getHttp.py #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add getHttp.py #1

wants to merge 3 commits into from

Conversation

askDing
Copy link

@askDing askDing commented Mar 17, 2021

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

@xinyi1984
Copy link

@wwangyu2
Copy link

wwangyu2 commented Apr 21, 2024

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代理的速度

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants