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
//PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov anton.al.ivanov@gmail.com 2012 | |
var fs = require('fs'); | |
var system = require('system'); | |
var arg_url = system.args[1] || ''; | |
var snapshot = system.args[2] || ''; | |
fs.exists('sitemap.xml', function(exists) { | |
if (exists) { | |
fs.unlink('sitemap.xml'); |