baiyu8534 / TSWSpider

1 stars 1 forks source link

修改test.py手动下载出现小于200章无法取得正确下载地址的错误 #1

Open lon91ong opened 4 years ago

lon91ong commented 4 years ago

我的test.py 错误的返回信息:

GET: https://www.ting22.com/api.php?c=Json&id=1688&page=20&pagesize=10&callback=jQuery21403942595757035292_1588772462953&_=1588772462954
['22216262/180423118$xm', '22216262/180423131$xm', '22216262/180423136$xm', '22216262/180423141$xm', '22216262/180423151$xm', '22216262/180615824$xm', '22216262/180615830$xm', '22216262/180615842$xm', '22216262/180615849$xm', '22216262/180809812$xm']
[191, 192, 193, 194, 195, 196, 197, 198, 199, 200]
GET: https://www.ting22.com/api.php?c=Json&id=1688&page=21&pagesize=10&callback=jQuery21403942595757035292_1588772466562&_=1588772466563
['http://fdfs.xmcdn.com/group69/M03/1D/B1/wKgMb12paCOCV06KAFix1Hi3leo660.mp3', 'http://fdfs.xmcdn.com/group69/M03/1D/B1/wKgMb12paCjQevM0AFZGPPEfInA066.mp3', 'http://fdfs.xmcdn.com/group67/M0A/1D/60/wKgMd12paCqxYt1MAFUwr6PRm-Q944.mp3', 'http://fdfs.xmcdn.com/group67/M0A/1D/60/wKgMd12paC2hIkdwAGMXDbbe9E4972.mp3', 'http://fdfs.xmcdn.com/group67/M0A/1D/4D/wKgMbV2paC_BPrdZAFyjoI7hQx8679.mp3', 'http://fdfs.xmcdn.com/group67/M0A/1D/4D/wKgMbV2paDKgH_srAE6jItdKXA4665.mp3', 'http://fdfs.xmcdn.com/group68/M03/1D/40/wKgMeF2paDTxZXc9AFlla3iIuHI499.mp3', 'http://fdfs.xmcdn.com/group68/M03/1D/40/wKgMeF2paDfDbStSAE-uE5uUJKg670.mp3', 'http://fdfs.xmcdn.com/group68/M03/1D/3F/wKgMbl2paDnCfGNUAFiRLRtjzuY075.mp3', 'http://fdfs.xmcdn.com/group68/M03/1D/41/wKgMeF2paDvixmy6AFUCJ8bRh_E578.mp3']
[201, 202, 203, 204, 205, 206, 207, 208, 209, 210]

不知是否遇到过? 能否给些提示

lon91ong commented 4 years ago

猜测应该是免费试听的节目地址规则不一样吧

baiyu8534 commented 4 years ago

可以提供下具体的log吗,和具体的小说名字,我试一下

lon91ong commented 4 years ago

可以提供下具体的log吗,和具体的小说名字,我试一下

已经解决了,就像我二楼猜测的那样,喜马拉雅上免费试听章节取得的文件地址是类似22216262/180423118$xm这种格式,前一半数字意义不明,后面的一半数字可以用来下载 补全音频文件网址为:http://mobile.ximalaya.com/mobile/redirect/free/play/180423118/0