Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save theeluwin/8736318 to your computer and use it in GitHub Desktop.

Select an option

Save theeluwin/8736318 to your computer and use it in GitHub Desktop.
var page = require('webpage').create();
var url = 'http://m.comic.naver.com/comment/listComment.nhn?titleId=119874&no=641&category=webtoon&sortOption=best';
page.open(url, function(s){
window.setTimeout(function(){
var fs = require('fs');
try {
fs.write('test.json', page.content, 'w');
} catch(e) {
console.log(e);
}
phantom.exit();
}, 100);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment