世界之窗论坛's Archiver

枫谷剑仙 发表于 2013-12-1 09:36

【教程】迅雷离线,如何离线超过2000个文件的BT种子。

[i=s] 本帖最后由 枫谷剑仙 于 2013-12-7 21:57 编辑 [/i]

迅雷离线下载每个BT种子最大只支持2000个文件,所以我研究了下怎么建立统一种子的多个任务来下载所有的文件。
这里我用TLMC神种主体部分为例,神种里面有5000多个文件,而且特别大。
[list=1]
[*]打开新版迅雷客户端,在此直接添加BT任务。因为不需要下载到本地,可以选择“手动下载”。
[img=871,736]http://ww4.sinaimg.cn/large/6c84b2d6gw1eb3xuh6z13j20o70kg0vb.jpg[/img][*]在此建立离线任务(网页版直接添加BT任务会失败,所以得在这里添加)
[img=692,128]http://ww2.sinaimg.cn/large/6c84b2d6gw1eb3xur91xzj20j803kwel.jpg[/img][*]然后访问网页版,可以看到任务已经建立并秒掉了。但是其大小明显小于神种大小。是因为迅雷只建立了前2000个文件的任务。
[img=948,482]http://ww3.sinaimg.cn/large/6c84b2d6gw1eb3xuynyk1j20qc0de0ub.jpg[/img][*]打开这个BT任务,点击编辑BT任务。
[img=786,431]http://ww1.sinaimg.cn/large/6c84b2d6gw1eb3xveyojaj20lu0bz0tp.jpg[/img][*]进入任务编辑界面
[img=563,468]http://ww4.sinaimg.cn/large/6c84b2d6gw1eb3xvl1fmsj20fn0d0dgn.jpg[/img][*]这个时候对该网页运行如下JS代码,不会用JS代码的,帖子最后有介绍。[code]function maintable(){
        var rulelist = document.getElementById("rulelist");
                var rwlis = rulelist.getElementsByClassName("selit");
        spacetable = '';
        spacetable += '<div id="rlinfo">该BT种子总共有 '+rwlis.length+' 个文件。</div>';
        spacetable += '<label>开始序号<input id="liststart" type="text" /></label><br />';
        spacetable += '<label>结束序号<input id="listend" type="text" /></label><br />';
        spacetable += '<input id="listcheck" type="button" value="选择" onClick="getlistnum(\'liststart\',\'listend\')" />';
        spacetable += '<div id="slinfo"/>';
        return spacetable;
}
function getlistnum(startname,endname){
        var liststart = document.getElementById(startname).value;
        var listend = document.getElementById(endname).value;
        liststart=parseInt(liststart);
        listend=parseInt(listend);
        checklist(liststart,listend);
}
function checklist(start,end){
        var slinfo = document.getElementById("slinfo");
        if(isNaN(start) || isNaN(end) || start < 1 || start > end){
                slinfo.innerHTML = '开始序号:' + start + '<br />结束序号:' + end + '<br /><font style="color:#F00">请确保开始序号与结束序号都是正整数,且开始序号大于结束序号。</font>';
                return;
        }else{
                var rulelist = document.getElementById("rulelist");
                var rwlis = rulelist.getElementsByClassName("selit");
                var rlinfo = document.getElementById("rlinfo");
                rlinfo.innerHTML = '该BT种子总共有 '+rwlis.length+' 个文件。';
                if (end > rwlis.length){
                        end = rwlis.length;
                        if (start > end){
                                slinfo.innerHTML = '输入数字过大,BT任务里只有'+ rwlis.length +'个文件';
                                return;
                        }
                }
                slinfo.innerHTML = '程序开始自动选择文件<br />开始序号:' + start + '<br />结束序号:' + end + '<br />共选择' + (end-start+1) + '个文件';
        }
        
        for (id=0;id<rwlis.length;id++){
                if (id >= start-1 && id <= end-1){
                        checkit(rwlis[id],true);
                }else{
                        checkit(rwlis[id],false);
                }
        }
        bt_manual_select('edit');bt_check_click('edit');
}
function checkit(obj,value){
/*        if(value){
                if(obj.checked == false){
                        obj.click();
                }
        }else{
                if(obj.checked == true){
                        obj.click();
                }
        }*/
        if(value){
                if(obj.checked == false){
                        obj.checked = true;
                }
        }else{
                if(obj.checked == true){
                        obj.checked = false;
                }
        }
}

;(function(window){
        var d,i,c,clickHandler;
        if(window.lixianselect){
                return false;
        }
        if(!window.FormData){
                return false;        
        }
        
        clickHandler = function(){
                d.parentNode && document.body.removeChild(d);
                c.removeEventListener('click',clickHandler);        
                d = i = c = null;
                delete window.lixianselect;                                
        }
        
        i = document.createElement('div');
        i.style.cssText = [
                 ''
                ,'width:180px'
                ,''
        ].join(';');
        i.innerHTML = maintable();
        
        c = document.createElement('div');
        c.innerHTML = '关&#x95ED';//关闭
        c.style.cssText = [
                 ''
                ,'width:40px'
                ,'box-shadow:0 0 2px #333'
                ,'position:absolute'
                ,'top:0'
                ,'left:-40px'
                ,'line-height:25px'
                ,'padding:0'
                ,'margin:0'
                ,'border-radius:0'
                ,'border:none'
                ,'background:#515151'
                ,'z-index:99999'
                ,'text-align:center'
                ,'color:#aaa'
                ,'cursor:pointer'
                ,''
        ].join(';');
        c.addEventListener('click',clickHandler);

        d = document.createElement('div');
        d.style.cssText = [
                 ''
                 ,'box-shadow:0 0 10px #333'
                 ,'position:fixed'
                 ,'top:0'
                 ,'right:0'
                 ,'z-index:1000000'
                 ,'font-family:arial,sans-serif'
                 ,'padding:5px'
                 ,'margin:0'
                 ,'border-radius: 0 0 0 5px'
                 ,'background:#F5F8FA'
                 ,''
        ].join(';');
        d.appendChild(c);
        d.appendChild(i);
        document.body.appendChild(d);
        window.lixianselect = d;        
})(window);[/code][*]网页右上角便会出来一个窗口,在这里设置你希望选择的序号,点击选择后便会改变选择。因为前一个任务已经是前2000个文件,因此这里就选择2001-4000号文件。
[img=994,563]http://ww3.sinaimg.cn/large/6c84b2d6gw1eb3xvr02vjj20rm0fngn9.jpg[/img][*]因为相同BT种子的任务可能合并,可以为任务改名,还便于区分,。
[img=521,353]http://ww2.sinaimg.cn/large/6c84b2d6gw1eb3xvxuzvij20eh09tmxn.jpg[/img][/list]

建议配合此方法使用:[url=http://bbs.theworld.cn/thread-226731-1-1.html]批量下载超大文件数量的迅雷离线的方法[/url]
[hr]

[list]


下面是JS使用方法

[table]
[tr][td]支持浏览器[/td][td][url=http://windows.microsoft.com/ie][img]http://godarkforie.org/img/ie.png[/img]
[b]Internet Explorer[/b][/url][/td][td][url=http://www.google.com/chrome][img]http://godarkforie.org/img/chrome.png[/img]
[b]Chrome[/b][/url][/td][td][url=http://www.firefox.com][img]http://godarkforie.org/img/firefox.png[/img]
[b]Firefox[/b][/url][/td][td][url=http://www.opera.com][img]http://godarkforie.org/img/opera.png[/img]
[b]Opera[/b][/url][/td][td][url=http://www.apple.com/safari][img]http://godarkforie.org/img/safari.png[/img]
[b]Safari[/b][/url][/td][/tr]
[tr][td]同内核浏览器
使用方法同上[/td][td] 无法:[u]IE内核wg浏览器无法打开开发者工具[/u],只能使用原版IE[/td][td]猎豹、遨游、搜狗、世界之窗急速、世界之窗6、枫树、360急速[/td][td] 水狐[/td][td]
[/td][td]
[/td][/tr]
[/table]

[size=5]IE[/size]
[list=1]
[*]按F12打开开发者工具(IE7以上才有)[*]点击脚本,在右下方粘贴代码,然后回车运行。
[img]http://storage.live.com/items/BF825EF87FCF7361!4235?filename=粘贴代码位置.jpg[/img][/list]


[size=5]Chrome[/size]
[list=1]
[*]按F12打开开发者工具
国内一些双核浏览器(如搜狗浏览器),按F12不起作用的,点击右键“审查元素”即可,前提是你是在“高速模式”而不是“IE兼容模式”[*]点击控制台
[img]http://storage.live.com/items/BF825EF87FCF7361!3151?filename=打开JS测试面板.JPG[/img][*]粘贴代码
][img]http://storage.live.com/items/BF825EF87FCF7361!3152?filename=粘贴代码.JPG[/img][*]回车执行
[img]http://storage.live.com/items/BF825EF87FCF7361!3156?filename=按回车执行.JPG[/img][/list]


[size=5]Firefox[/size]3种方法
[list=1]
[*]普通控制台[list=1]
[*]Ctrl+Shift+K打开控制台[*]在控制台下方粘贴代码并回车运行
[img]http://storage.live.com/items/BF825EF87FCF7361!4236?filename=普通控制台.jpg[/img][/list][*]代码速记器[list=1]
[*]按Shift+F4打开代码片段速记器,或如下图从菜单打开
[img]http://storage.live.com/items/BF825EF87FCF7361!4046?filename=代码片段速记器.jpg[/img][*]粘贴代码
[img]http://storage.live.com/items/BF825EF87FCF7361!4047?filename=粘贴代码.jpg[/img][*]点击执行
[img]http://storage.live.com/items/BF825EF87FCF7361!4048?filename=运行.jpg[/img][/list][*]Firebug(需安装该扩展)[list=1]
[*]按F12打开Firebug控制台[*]在控制台右方粘贴代码点击运行
[img]http://storage.live.com/items/BF825EF87FCF7361!4237?filename=Firebug.jpg[/img][/list]
[/list]


[size=5]Opera[/size]
[list=1]
[*]Opera 12及以前 按 Ctrl+Shift+I 打开Opera Dragonfly面板,选择控制台,粘贴后按Ctrl+Enter运行。[*]Opera 15已经变成Chrome的壳了,和Chrome一样的操作。[/list]


[size=5]Safari[/size]
[list=1]
[*]你需要有一台苹果电脑[/list][/list]

yuexiaaoxiang 发表于 2013-12-1 10:48

技术贴tw46yct

自由的风2 发表于 2013-12-1 12:33

技术流
真复杂

苹果啤酒 发表于 2013-12-1 19:36

2000个..................tw89yct

Life 发表于 2013-12-2 13:51

学习了。
重庆医科大学啊,不错。楼主有前途~

april 发表于 2013-12-2 18:33

跳过技术,直接回复。

枫谷剑仙 发表于 2013-12-2 20:26

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621528&ptid=227142]5#[/url] [i]Life[/i] [/b]


    哪里看到我是重医的了

412268499 发表于 2013-12-2 21:21

[quote]回复  Life


    哪里看到我是重医的了
[size=2][color=#999999]枫谷剑仙 发表于 2013-12-2 20:26[/color] [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621567&ptid=227142][img]http://bbs.theworld.cn/images/common/back.gif[/img][/url][/size][/quote]
教务系统的截图。

枫谷剑仙 发表于 2013-12-2 23:47

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621579&ptid=227142]8#[/url] [i]412268499[/i] [/b]


    也没看见重医的字样啊

412268499 发表于 2013-12-3 11:03

[quote]回复  412268499


    也没看见重医的字样啊
[size=2][color=#999999]枫谷剑仙 发表于 2013-12-2 23:47[/color] [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621595&ptid=227142][img]http://bbs.theworld.cn/images/common/back.gif[/img][/url][/size][/quote]
cqmu。。。

枫谷剑仙 发表于 2013-12-3 20:36

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621619&ptid=227142]10#[/url] [i]412268499[/i] [/b]


    知道这个的人很少吧

412268499 发表于 2013-12-3 22:54

[quote]回复  412268499


    知道这个的人很少吧
[size=2][color=#999999]枫谷剑仙 发表于 2013-12-3 20:36[/color] [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621687&ptid=227142][img]http://bbs.theworld.cn/images/common/back.gif[/img][/url][/size][/quote]
随手百度下。。。

jmdjy 发表于 2013-12-4 11:52

百度离线的有没有这个限制?

10467106 发表于 2013-12-4 14:49

话说JS可以做成user.js脚本吗。。。

枫谷剑仙 发表于 2013-12-5 01:25

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621762&ptid=227142]13#[/url] [i]jmdjy[/i] [/b]


    百度离线根本就无法上传这么大的种子(7M),不信你可以去试试,离线还是讯雷强

枫谷剑仙 发表于 2013-12-5 01:25

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621788&ptid=227142]14#[/url] [i]10467106[/i] [/b]


    我不会做,而且这个使用率不高没必要,这样的话所有浏览器都能用

枫谷剑仙 发表于 2013-12-5 01:26

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621716&ptid=227142]12#[/url] [i]412268499[/i] [/b]


    那也只有闲的人才去做了

10467106 发表于 2013-12-6 09:35

[quote]回复  10467106


    我不会做,而且这个使用率不高没必要,这样的话所有浏览器都能用
[size=2][color=#999999]枫谷剑仙 发表于 2013-12-5 01:25[/color] [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621861&ptid=227142][img]http://bbs.theworld.cn/images/common/back.gif[/img][/url][/size][/quote]


    tw6就木有F12.....

jmdjy 发表于 2013-12-6 10:52

[quote]回复  jmdjy


    百度离线根本就无法上传这么大的种子(7M),不信你可以去试试,离线还是讯雷强
[size=2][color=#999999]枫谷剑仙 发表于 2013-12-5 01:25[/color] [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621860&ptid=227142][img]http://bbs.theworld.cn/images/common/back.gif[/img][/url][/size][/quote]


      有个方法,先百度云把种子上传上去,然后在线双击种子文件打开,这样就会转到百度离线那里下载,你试一试行不。

枫谷剑仙 发表于 2013-12-6 20:09

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1622056&ptid=227142]19#[/url] [i]jmdjy[/i] [/b]


    以以为我没试过,你尽可以一试
因为本来就是这个方法,直接上传种子开始下载只不过程序把这一串步骤自动化了而已。

枫谷剑仙 发表于 2013-12-6 20:11

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1622042&ptid=227142]18#[/url] [i]10467106[/i] [/b]


    F12不起作用的,右键,审查元素,后面有说明……

10467106 发表于 2013-12-7 14:26

[quote]回复  10467106


    F12不起作用的,右键,审查元素,后面有说明……
[size=2][color=#999999]枫谷剑仙 发表于 2013-12-6 20:11[/color] [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1622130&ptid=227142][img]http://bbs.theworld.cn/images/common/back.gif[/img][/url][/size][/quote]


    tw6 什么都没有。。。。。。。。

Life 发表于 2013-12-7 17:03

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1621862&ptid=227142]17#[/url] [i]枫谷剑仙[/i] [/b]

你说的对。

枫谷剑仙 发表于 2013-12-7 21:58

[b]回复 [url=http://bbs.theworld.cn/redirect.php?goto=findpost&pid=1622198&ptid=227142]22#[/url] [i]10467106[/i] [/b]


    那你还是换浏览器吧,世界之窗6现在就是给小白用的,功能还不如极速版多。

页: [1] 2

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.