Skip to content

Instantly share code, notes, and snippets.

@pe3
Last active December 19, 2015 11:29
Show Gist options
  • Save pe3/5948449 to your computer and use it in GitHub Desktop.
Save pe3/5948449 to your computer and use it in GitHub Desktop.
Downloading a HTML file with minimal Grunt
module.exports = (grunt) ->
grunt.initConfig
curl:
long:
src: 'http://www.hankintailmoitukset.fi/fi/?all=1'
dest: './scrape-file.html'
grunt.loadNpmTasks 'grunt-curl'
grunt.registerTask 'default', 'This is the default task', 'curl'
{
"name": "grunt-curl-test",
"version": "0.0.1",
"description": "Downloading a HTML file with minimal Grunt",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-curl": "~1.1.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment