使用wget下载
先在控制台把cookie提取出来,
查看wget的文档,发现它使用cookie的方法跟curl有点不一样,得将cookie放到一个文件里,而不能像curl那样从标准输入传入。
➜ test/wget_test master ✓ echo "bdshare_firstime=1457343970667; Hm_lvt_7a3960b6f067eb0085b7f96ff5e660b0=1495171172; BIDUPSID=01CD802F47A52AD41B6FC26CC615FE77; PSTM=1468521279; BAIDUID=83EF6036C2881C67FE51ADF68AFE8B54:FG=1; secu=1; PANWEB=1; BDCLND=CMiZzL0PKTRGqvJeASgLktricysg3XLeJCCesiD2D%2B4%3D; cflag=15%3A3; Hm_lpvt_7a3960b6f067eb0085b7f96ff5e660b0=1495178485; FP_UID=1a4340d7a3542e90bb1828f48f33c16f" > cookies.txt
shasum -a 1 "fcc78a1151a3c30cf3cbbf39eecdad84?fid=3887512363-250528-102448564718518&time=1495178744&rt=sh&sign=FDTAERV-DCb740ccc5511e5e8fedcff06b081203-4ixFA3wXVDAXy3tq%2BlVMFar2oaM%3D&expires=8h&chkv=1&chkbd=0&chkpc=&dp-logid=3215519581448370489&dp.1"
1e5d3c477d184724a7290c5ae0c89a86ffb6caeb fcc78a1151a3c30cf3cbbf39eecdad84?fid=3887512363-250528-102448564718518&time=1495178744&rt=sh&sign=FDTAERV-DCb740ccc5511e5e8fedcff06b081203-4ixFA3wXVDAXy3tq%2BlVMFar2oaM%3D&expires=8h&chkv=1&chkbd=0&chkpc=&dp-logid=3215519581448370489&dp.1
迅雷下载
虽然这个脚本提示了需要cookie才可以,然而我直接复制到迅雷也可以下载
然后用sha1校验发现跟之前用wget下载的是一致的
➜ you-get/src/you_get master ✓ shasum -a 1 /Users/caiqiqi/Downloads/fcc78a1151a3c30cf3cbbf39eecdad84.exe
1e5d3c477d184724a7290c5ae0c89a86ffb6caeb /Users/caiqiqi/Downloads/fcc78a1151a3c30cf3cbbf39eecdad84.exe