admin管理员组文章数量:1567522
1.检查登陆是否需要验证码
http://login.xunlei/check?u=%(username)&cachetime=%(现在的时间)
返回:
cookie['check_result']为'0:----'时表示不需要输入验证,后面的'----'为固定的默认验证码
cookie['check_result']为'1'时表示要输入验证码
2.获取验证码
http://verify.xunlei/image?t=MVA&cachetime=%(cachetime)
cachetime非必须
参数:
t:有SEA(默认)和MVA两种
cachetime:现在的时间,单位为毫秒,非必须
返回:
VERIFY_KEY和对应的图片
注意:
MVA形式的验证码,VERIFY_KEY和图片的映射不是固定的,SEA未测试
3.登陆
http://login.xunlei/sec2login/
方法:
POST
Cookie(出验证码时才要):
VERIFY_KEY:第二部获取的
verify_type:MVA或SEA和第二部填的t一样
数据:
u:用户名
p:计算方法为hex_md5(hex_md5(hex_md5(password)) + verifycode.upper())
verifycode:'----'或VERIFY_KEY对应的图片的内容
login_enable:固定1
返回:
失败时cookie中含'logindetail'
成功时cookie中含一堆信息,其中的isvip可以用来判断是否会员
4.获取链接信息
http,ftp,thunder:
http://dynamic.cloud.vip.xunlei/interface/task_check?callback=queryCid&url=下载链接&interfrom=task&random=随机数&tcache=1469438306042
返回:
queryCid(
'5123FDFE313CEB3AA88C18A1E634D1BF392C55DF', -->cid
'74E6419E571A70139A0641EC63C9138342E19E7E', -->gcid
'65884272', -->file_size
'4499495135017394', -->avail_space
'setup.exe', '0','0', 0, -->tname,goldbean_need, silverbean_need, is_full
'1469437924711405136.0192585646','','0') -->random, type, rtcode
磁力链:
http://dynamic.cloud.vip.xunlei/interface/url_query?callback=queryUrl&u=磁力链&interfrom=task&random=随机数&tcache=1469442039299
返回:
queryUrl(
//flag,infohash,fsize
1,'1807E02404BB55AFBD09358ECD3E7588A72ED29D','11918892245',
//bt_title,is_full
'Tales.of.Zestiria.v.1.4.Incl.14Dlcs-ALI213','0',
//subtitle
new Array('351970.part01.rar','351970.part02.rar','351970.part03.rar','351970.part04.rar','351970.part05.rar','351970.part06.rar','351970.part07.rar','351970.part08.rar','351970.part09.rar','351970.part10.rar','351970.part11.rar','351970.part12.rar','сноюмЬNETSHOW.exe'),'
//subformatsize
new Array('1000M','1000M','1000M','1000M','1000M','1000M','1000M','1000M','1000M','1000M','1000M','365M','1.00M'),
//size_list
new Array('1048576000','1048576000','1048576000','1048576000','1048576000','1048576000','1048576000','1048576000','1048576000','1048576000','1048576000','383497429','1058816'),
//valid_list
new Array('1','1','1','1','1','1','1','1','1','1','1','1','1'),
//file_icon
new Array('RAR','RAR','RAR','RAR','RAR','RAR','RAR','RAR','RAR','RAR','RAR','RAR','RAR'),
//findex
new Array('0','1','2','3','4','5','6','7','8','9','10','11','12'),
//is_blocked
new Array('0','0','0','0','0','0','0','0','0','0','0','0','0'),
//random,rtcode
'146944203794542303.27965594602','0'
)
种子文件:
POST http://dynamic.cloud.vip.xunlei/interface/torrent_upload
附带数据:
Content-Type: multipart/form-data; boundary=---------------------------20719067302268671101123616503
Content-Length: 68643
-----------------------------20719067302268671101123616503
Content-Disposition: form-data; name="filepath"; filename="646dafd998d350a2445f56684affb3dd2b7d0323.torrent"
Content-Type: application/x-bittorrent
\r\n
种子文件内容返回:
infoid
5.提交任务
http,ftp,thunder:
http://dynamic.cloud.vip.xunlei/interface/task_commit
请求参数:
callback=ret_task
uid//用户id
cid//从task_check返回值获取
gcid//同上
size//同上
goldbean//金豆,填0就行
silverbean//银豆,填0就行
t//标题,即文件名
url
verify_code//验证码,不需要时填空字符串
type=0
o_page=history
o_taskid=0
class_id=0
database=undefined
interfrom=task
time=Fri%20Jul%2029%202016%2011:38:04%20GMT+0800
noCacheIE=1469763484334
返回:
ret_task(
1,//ret_num,0成功,1失败,-11,-12出验证码
'1416620227502081',//taskid
'3.0665261745453'//time
)
磁力链,种子文件:
POST http://dynamic.cloud.vip.xunlei/interface/bt_task_commit?callback=jsonp1469513522947&t=Tue%20Jul%2026%202016%2014:12:40%20GMT+0800%20(CST)
参数:
uid
btname//标题
cid//info或infohash
goldbean=0
silverbean=0
tsize=11918892245//
findex=0_1_2_3_4_5_6_7_8_9_10_11_12_//要下载的文件的下标
size=1048576000_1048576000_1048576000_1048576000_1048576000_1048576000_1048576000_1048576000_1048576000_1048576000_1048576000_383497429_1058816_//大小
o_taskid=0
o_page=task
class_id=0
interfrom=task
verify_code//验证码返回:
jsonp1469764956636({
"id":"1420184742535169",//taskid
"avail_space":"4499483755717334",
"time":2.3436241149902,
"progress":1
})
6.获取下载链接
http://dynamic.cloud.vip.xunlei/interface/showtask_unfresh?callback=jsonp1470122229847&t=Tue%20Aug%2002%202016%2015:18:58%20GMT+0800&type_id=4&page=1&tasknum=1&p=1&interfrom=task
参数:
tasknum:表示要返回前tasknum个任务的详细信息
返回:非bt的话,从结果中的lixian_url可以获取下载链接
版权声明:本文标题:迅雷离线网页版API 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1727269429a1105842.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论