Created
July 13, 2015 02:07
-
-
Save faryne/6dc6bd21fa4a295caae5 to your computer and use it in GitHub Desktop.
抓某花園的番組表 HTML
This file contains 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 web = require('webpage'); | |
var client = web.create(); | |
var fs = require('fs'); | |
var file = "/var/www/tmp/dmhy_programme.html"; | |
client.open('http://share.dmhy.org/cms/page/name/programme.html', function(status){ | |
if (status === 'success') | |
{ | |
fs.write(file, client.content, 'w'); | |
} | |
client.close(); | |
phantom.exit(); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment