|
|
- <?php
- $url = 'http://img.sslibrary.com/n/8358ac80b6dc22d0ee6742c755018024MC264708996922/img0/4345D2B493D46FF5FC0235F71F059960B9144744490FC8B22E56B6565879D2F0CADA7A34898537BA8284DF517FFE3F3068794C2A1513A3CAFAD5599D0B8064788CAF2D9D59D81855F46FE0933B3B2815026F8783C897617F5A0AE0E5C63269415A14B991C3B9BCADC798CA5B460C90F46CBF/bf1/qw/12710475/E6D50EFBC9E04757B4576FB01D833CD3/';
- $filedir = __DIR__ .'/';
- $md5 = '9bcaf3fe00d1c5c5f4fe16cd0db266c4';
- $sleep = 1000000;
- $exe = 'wget --load-cookies=cookies.txt --user-agent="Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" --referer ';
- $exe .= 'http://img.sslibrary.com/n/slib/book/slib/12710475/e6d50efbc9e04757b4576fb01d833cd3/732ac7468b1621bb0291924658684810.shtml -T 25 -t 0 -O ';
- //正文
- //*
- for($i=1;$i<=597;$i++){
- $name = str_pad($i,6,'0',STR_PAD_LEFT);
- $urli = $url . $name.'?zoom=2';
- $filepathname = $filedir .$name . '.png';
- if (!file_exists($filepathname)) {
- exec($exe . $filepathname .' '.$urli);
- usleep($sleep);
- if(md5_file($filepathname) == $md5){
- unlink($filepathname);
- $i -= 1;
- }
- }
- }
- //*/
复制代码
其中 cookies.txt 内容如下
- # HTTP cookie file.
- # Generated by Wget on 2020-05-04 12:57:33.
- # Edit at your own risk.
- .sslibrary.com TRUE / FALSE 3736051899 account
- .sslibrary.com TRUE / FALSE 3736051899 deptid 992
- .sslibrary.com TRUE / FALSE 3736051899 DSSTASH_LOG C_34-UN_992-US_-1-T_1588558929637
- .sslibrary.com TRUE / FALSE 3736051899 enc eceeeeaefa8d1360ce25b508f57bbeb2
- .sslibrary.com TRUE / FALSE 3736051899 loginType ip
- .sslibrary.com TRUE / FALSE 3736051899 msign 195509163152253
- .sslibrary.com TRUE / FALSE 3736051899 UM_distinctid 1718c8f8fab138-03b42fae40309c-153a7440-1fa400-1718c8f8fac37
- .sslibrary.com TRUE / FALSE 3736051899 username 222.175.180.10
- img.sslibrary.com TRUE / FALSE 3736051899 __dxca 33b98fbf-aeef-4250-8f8f-2d7a5916363f
- img.sslibrary.com TRUE / FALSE 3736051899 JSESSIONID 29D275DED4D62FEAF5766A27AD473919.jp126
- img.sslibrary.com TRUE / FALSE 3736051899 route a575489903c484633764084e1347a9d1
复制代码 |
|