Skip to content

Instantly share code, notes, and snippets.

@wintercn
Created November 17, 2013 16:33
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wintercn/7515229 to your computer and use it in GitHub Desktop.
Save wintercn/7515229 to your computer and use it in GitHub Desktop.
糟糕的兴趣呢 嗯……
var names = [
/【猪猪字幕组】★4月新番 美食的俘虏Toriko 第\d*话/g,
/【Dymy字幕組】【魔笛_Magi 第二季】【\d*】/g,
/【Dymy字幕組】【東京暗鴉 Tokyo Ravens】【\d*】/g,
/\[OPFans枫雪动漫\]\[ONE PIECE 海贼王\]\[第\d*话\]/g,
/【极影字幕社】 ★物语系列/g
];
var request = new ActiveXObject("MSXML2.XmlHttp.6.0");
request.open("GET","http://bt.ktxp.com/index-1.html",false)
request.send(null);
var txt = request.responseText;
var pattern = /\<td class\="ltext ttitle"\>\<a href\=\"([^"]+)\" class\=\"quick-down cmbg\"\>\<\/a\>\<a href=\"[^"]+\" target\=\"_blank\"\>([^<]+)(?:\<span\>\&nbsp\<\/span\>)?\<\/a\>(?:\<span\>&nbsp;\(\<a[^>]*\>讨论\<\/a\>\)\<\/span\>)?\<\/td\>/g;
try{
var agent = new ActiveXObject("ThunderAgent.Agent64.1");
} catch(e) {
var agent = new ActiveXObject("ThunderAgent.Agent.1");
}
while(pattern.exec(txt)) {
var link = RegExp.$1, name =RegExp.$2;
for(var i =0;i<names.length;i++) {
if(name .match(names[i])) {
WScript.echo(name);
agent.addTask("http://bt.ktxp.com"+link,name);
}
}
}
agent.CommitTasks2(1);
agent = null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment