Skip to content

Instantly share code, notes, and snippets.

@taylor224
Created February 2, 2017 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylor224/a4e268636ce6d1b7c528ed9f2374f614 to your computer and use it in GitHub Desktop.
Save taylor224/a4e268636ce6d1b7c528ed9f2374f614 to your computer and use it in GitHub Desktop.
2CPU [신청] 자 추출 스크립트
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