Last active
June 15, 2018 17:35
-
-
Save seeya/81865e5032cb39d14dda9413c542a683 to your computer and use it in GitHub Desktop.
Extract rapidvideo links from kissasian through Chrome's console tab.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let start = 1; | |
let end = 16; | |
let showName = 'DescendantOfTheSun'; | |
let drama = 'http://kissasian.ch/Drama/Descendant-of-the-Sun/Episode-'; | |
let wait = 10000; | |
function sleep(time) { | |
return new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
resolve(true); | |
}, time); | |
}); | |
} | |
for(let i=start; i<=end; i++) { | |
var html = await $.get(`${drama}${i}`); | |
var code = html.split("$('#divContentVideo iframe').attr('src', $kissenc.decrypt('")[1].split("')")[0]; | |
console.log(eval(`$kissenc.decrypt('${code}')`) + `#name=${showName}E${i}.mp4`); | |
await sleep(wait); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With jdownloader, we can rename the file download link using Packagizer.
Creating a new rule, under
Sourceurl(s)
set.*#name=(.+)
and tickregex
.At
... then set
, checkFilename
and set value to<jd:source:1>
.