Skip to content

Instantly share code, notes, and snippets.

@nainglinaung
Last active April 25, 2017 20:21
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 nainglinaung/1131c4d71995b9b9aaa31671cccb6575 to your computer and use it in GitHub Desktop.
Save nainglinaung/1131c4d71995b9b9aaa31671cccb6575 to your computer and use it in GitHub Desktop.
var website = "http://shiroyukitranslations.com/lls-chapter-";
// <a href="http://shiroyukitranslations.com/long-live-summons/#tabs_desc_8329_4">Team</a>
var fs = require('fs');
var stream = fs.createWriteStream("my_file.txt");
stream.once('open', function(fd) {
for(i=1; i<465; i++) {
stream.write('<a href="'+website+i+'">'+'Chapter '+i+'</a>'+"\n");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment