thunder迅雷下载地址真实地址解析

经常下载视频游戏之类的同学们应该经常碰到thunder开头的迅雷下载地址,但是却经常由于版权问题不能下载,那么这里就普通下载url与迅雷下载地址转换进行说明。

例如我随便给一个下载地址是
https://www.bobobk.com/favicon.ico

1.普通地址转换为迅雷地址

1.1在原地址前面加”AA”,后面加”ZZ”,地址变为AAhttps://www.bobobk.com/favicon.icoZZ

1.2此地址base64编码为

QUFodHRwczovL3d3dy5ib2JvYmsuY29tL2Zhdmljb24uaWNvWlo=

1.3迅雷专链即在上地址前加thunder://,即

thunder://QUFodHRwczovL3d3dy5ib2JvYmsuY29tL2Zhdmljb24uaWNvWlo=

转换代码


import base64
def convert_to_thunder(s):
    s1  = "AA"+s+"ZZ"
    s2 = base64.b64encode(s1.encode())
    s3 = "thunder://" + s2.decode()
    return s3
normal_url  = 'https://www.bobobk.com/favicon.ico'
print(convert_to_thunder(normal_url))

《thunder迅雷下载地址真实地址解析》
2.迅雷地址转换为普通地址

2.1在原地址前去掉上”thunder://”

地址变为
QUFodHRwczovL3d3dy5ib2JvYmsuY29tL2Zhdmljb24uaWNvWlo=

2.2此地址base64解编码为

AAhttps://www.bobobk.com/favicon.icoZZ

2.3前后分别去掉 AA和ZZ

https://www.bobobk.com/favicon.ico

转换代码


import base64
def convert_thunder(s):
    s1  = s.strip().split("//")[1]
    s2 = base64.b64decode(s1).decode()
    s3 = s2[2:-2]
    return s3
thunder = 'thunder://QUFodHRwczovL3d3dy5ib2JvYmsuY29tL2Zhdmljb24uaWNvWlo='
print(convert_thunder(thunder))
点赞

Leave a Reply

Your email address will not be published. Required fields are marked *