Created
February 2, 2017 17:22
-
-
Save taylor224/a4e268636ce6d1b7c528ed9f2374f614 to your computer and use it in GitHub Desktop.
2CPU [신청] 자 추출 스크립트
This file contains hidden or 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
var a=$("#commentContents>table"); | |
var list = []; | |
var text = ''; | |
$.each(a, function(i,v) { | |
if (v.innerText.indexOf("[신청]") >= 0) { | |
list.push($(v).find("a[class='sideview']")[0].innerText); | |
} | |
}); | |
console.log("총 " + list.length + " 명 입니다."); | |
console.log(list); | |
$.each(list, function(i,v) { | |
text += "<div>" + v + "</div>"; | |
}); | |
var file = new Blob([text], {type: 'text/html'}); | |
window.open(URL.createObjectURL(file)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment