TA的每日心情 | 擦汗 昨天 09:05 |
---|
签到天数: 2402 天 [LV.Master]伴坛终老
|
最近见到不少人发了 115 网盘的解析软件,要么带广告、要么联网刷流量,一个小小的东西没必要弄成这样。
: n9 L7 Y4 F' K' @: k7 |" s# j4 A0 @5 I+ m' [, Z' }$ `5 s; T
下午抓了一下 U 蛋的包,发现其实获取下载地址很简单。% n6 P/ x/ S8 p/ }3 U: K) @$ X
; t) k* P+ a c7 N+ r$ V
例如 115 网盘上某文件的下载地址为 - http://u.115.com/file/t6d903d466
* Y4 ?% {3 l: r复制代码
/ r v, k! q0 h" a/ ?( ?这其中的 t6d903d466 称之为提取码。( n. d7 a& W5 U- i+ \. _5 N( s
8 G0 I, o: |# M* ^/ Z8 f$ V
把提取码加到下面的地址后面,然后打开就可以看到真实的文件下载地址了。 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=
, G/ u8 X3 b" T复制代码
/ M2 ^; D% D& n4 s加上提取码后,地址为 - http://u.115.com//?ct=upload_api&ac=get_pick_code_info&version=1161&pickcode=t6d903d466
4 e9 T8 P5 x _8 R( w/ Y+ x复制代码
$ O$ N+ x1 h8 {/ S. L& c打开上面的地址,看到的是一串 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}
, a( e! S7 [7 t3 M. R( k: g复制代码
# u; i8 d! \! [. I( g" p其中"Url":后面的字符串就是文件真实下载地址,一般会有三个地址(分别表示电信、网通、备份)。
5 V* r7 A1 H* C$ D4 y# ^4 V3 T" l/ Q7 _, P
第一个地址为 - http:\/\/15.tel.115cdn.com\/pickdown\/M00\/4F\/EE\/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427\/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
! f: }4 p. l9 X+ E
复制代码
/ u. D1 J: R& X) o) K9 T, _把其中的转义字符"\/"替换为"/"得到的就是真实地址 - http://15.tel.115cdn.com/pickdown/M00/4F/EE/d5NqvEyb7m0AAAAABv1hAEk82Tw6352427/00-00.zip?key=a31a1b535f809a96a5fca0f75c5dfed5&key1=4ca0567b&file=00-00.zip&key2=35382e3231322e37342e313631
# N$ W6 g8 V. I P
复制代码, H: k$ l( c/ n+ j
就这么简单。 |
|