tikiwiki/packages/tiki-pkg-casperjs/jerome-breton/casperjs/samples/download.coffee
2023-11-20 20:52:04 +00:00

11 lines
236 B
CoffeeScript
Executable File

###
Download the google logo image onto the local filesystem
###
casper = require("casper").create()
casper.start "http://www.google.fr/", ->
@echo @download "http://www.google.fr/images/srpr/logo3w.png", "logo.png"
casper.run()