TA的每日心情 | 擦汗 4 小时前 |
---|
签到天数: 2392 天 [LV.Master]伴坛终老
|
最近见到不少人发了 115 网盘的解析软件,要么带广告、要么联网刷流量,一个小小的东西没必要弄成这样。
D6 E% f9 d/ ^1 ?0 G" S2 F1 ^: k$ X, R. M% D4 I
下午抓了一下 U 蛋的包,发现其实获取下载地址很简单。
; T; t$ o' X/ f b2 e; X% w3 j; u' v* \) b! {
例如 115 网盘上某文件的下载地址为 - http://u.115.com/file/t6d903d466
) J, E) e5 ~. ~1 U( F( Y9 _
复制代码
5 {; R' l' L7 D' a5 _3 ~; P, w这其中的 t6d903d466 称之为提取码。0 g9 {$ @8 U7 B% d' C+ I& c" K! _
+ L% x& a, V, r# Y/ t- ^3 a
把提取码加到下面的地址后面,然后打开就可以看到真实的文件下载地址了。 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=
9 w! j( K C2 H
复制代码, V* P4 W, T5 t3 m$ L) D5 w0 r, l
加上提取码后,地址为 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=t6d903d466
# H6 U, \- p+ R" G复制代码( } P, L+ ?% P' J
打开上面的地址,看到的是一串 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}
6 g( W, H7 Z9 R
复制代码; ~" x" \5 F, A3 ~1 Y1 x
其中"Url":后面的字符串就是文件真实下载地址,一般会有三个地址(分别表示电信、网通、备份)。& Q4 A/ S4 x" s+ E- i
: b8 [. f! ]8 S4 m. L0 l1 A5 ]' m第一个地址为 - http:\/\/15.tel.115cdn.com\/pickdown\/M00\/4F\/EE\/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427\/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
3 ^2 s$ D! M( w l. a$ G) c复制代码8 g- k- Z8 B2 n' K+ S: G1 A
把其中的转义字符"\/"替换为"/"得到的就是真实地址 - http://15.tel.115cdn.com/pickdown/M00/4F/EE/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
; e1 U5 I6 v4 N( U
复制代码7 I) i$ s9 `3 k: j6 j8 u* Z8 L8 P7 f
就这么简单。 |
|