TA的每日心情 | 奋斗 3 天前 |
---|
签到天数: 2383 天 [LV.Master]伴坛终老
|
最近见到不少人发了 115 网盘的解析软件,要么带广告、要么联网刷流量,一个小小的东西没必要弄成这样。$ K, @9 @1 |* D& H' i
; k) B( ~9 J# _% \( f4 z下午抓了一下 U 蛋的包,发现其实获取下载地址很简单。7 _ `4 o) T* s; A6 `1 G9 ~, y/ f4 D
) b2 ?% c% E8 R5 ?$ Y' b例如 115 网盘上某文件的下载地址为 - http://u.115.com/file/t6d903d466
9 A2 W( \* p i0 D8 V2 D
复制代码0 q4 M. C$ y4 X# e/ Y
这其中的 t6d903d466 称之为提取码。
# B. J% \' P% ^' |2 B8 b
9 O; M8 I( d, _: s3 w& B. Q* ?把提取码加到下面的地址后面,然后打开就可以看到真实的文件下载地址了。 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=
: t, o& D4 P, @- F1 s; G5 S. M6 _' \复制代码
) [& e$ y8 ~% }6 k8 v/ W加上提取码后,地址为 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=t6d903d466
! a# y6 `! Q! \. H
复制代码
& T! [5 P( ?* G3 w+ M( I0 K8 J- a打开上面的地址,看到的是一串 JSON, - {"DownloadUrl":[{"Url":"http:\/\/15.tel.115cdn.com\/pickdown\/M00\/4F\/EE\/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427\/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631"},{"Url":"http:\/\/15.cnc.115cdn.com\/pickdown\/M00\/4F\/EE\/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427\/00-00.zip?key=b4ea60a2446bf6a612f2e72a7dc2e20b&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631"},{"Url":"http:\/\/15.bak.115cdn.com\/pickdown\/16f1aa9d7f70e6abf54cd3f864ac3fae4ca080ab\/M00\/4F\/EE\/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427\/00-00.zip?file=00-00.zip&key1=4ca0567b&key2=35382e3231322e37342e313631","UrlKey":"http:\/\/15.bak.115cdn.com\/stat\/stat.gif"}],"FileName":"00-00.zip","Sha1":"48D67FC389CD85CF9B70294409745044641B9BA1","State":true,"Message":"ok","Version":1160}
. x+ |& @! q, s9 g; u
复制代码
0 a) k9 ^, W `. ~7 [其中"Url":后面的字符串就是文件真实下载地址,一般会有三个地址(分别表示电信、网通、备份)。" H6 M _, O; J4 r* ^, X
; c0 C* v7 h% \3 Z! w) y% }
第一个地址为 - http:\/\/15.tel.115cdn.com\/pickdown\/M00\/4F\/EE\/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427\/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
# ~; h V4 k8 L. I1 E
复制代码
4 z) f) x' X/ E% a6 Q6 r把其中的转义字符"\/"替换为"/"得到的就是真实地址 - http://15.tel.115cdn.com/pickdown/M00/4F/EE/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
1 N4 B" l* U* c9 P) [* B( G R复制代码
7 x7 y5 ~2 z/ S( K. O& V就这么简单。 |
|