TA的每日心情 | 奋斗 4 天前 |
---|
签到天数: 2370 天 [LV.Master]伴坛终老
|
最近见到不少人发了 115 网盘的解析软件,要么带广告、要么联网刷流量,一个小小的东西没必要弄成这样。
; @. N1 X* |" _6 e3 U- G" r
- {% N1 g. Y: h下午抓了一下 U 蛋的包,发现其实获取下载地址很简单。
7 E6 m% N% g3 m
: v. d; H3 i7 K, z3 g0 @1 N2 W例如 115 网盘上某文件的下载地址为 - http://u.115.com/file/t6d903d466
: G% g# _. V2 T* I复制代码3 e! N( n" D# ~# t7 O4 s$ h
这其中的 t6d903d466 称之为提取码。' { M5 F$ {9 V8 }1 [
( T. h! N N# i# F) Z" m
把提取码加到下面的地址后面,然后打开就可以看到真实的文件下载地址了。 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=
) {4 b3 w! f0 T4 m. x- B复制代码
6 v* {9 k% U! J加上提取码后,地址为 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=t6d903d466
$ Q ?+ c" H% i& y1 f9 b复制代码; x, O" R8 X: r: s: \" y
打开上面的地址,看到的是一串 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}
+ J, @5 h" ]% e. p* u复制代码. z" S, ^; q0 H; c3 Z7 Q w
其中"Url":后面的字符串就是文件真实下载地址,一般会有三个地址(分别表示电信、网通、备份)。
$ J3 s- C. p" N2 f
3 G. U! O- a" S3 H第一个地址为 - http:\/\/15.tel.115cdn.com\/pickdown\/M00\/4F\/EE\/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427\/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
* W1 C3 V6 h1 S+ t# l* Z. O5 F
复制代码
- U! O% p% n% E+ l% ^' p把其中的转义字符"\/"替换为"/"得到的就是真实地址 - http://15.tel.115cdn.com/pickdown/M00/4F/EE/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
& v& U- S0 G5 ^; J
复制代码
) f5 e' T8 W% L8 o5 w就这么简单。 |
|