Skip to content

Instantly share code, notes, and snippets.

@RobK
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save RobK/3b227a1a5802f217595c to your computer and use it in GitHub Desktop.

Select an option

Save RobK/3b227a1a5802f217595c to your computer and use it in GitHub Desktop.

Revisions

  1. RobK revised this gist May 5, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.js
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ photoBox.login(config, function (err) {
    if (err) {
    console.log(err);
    } else {
    console.log('Finished, all photos in every album have now been downloaded (that was easy!)');
    console.log('Finished, all photos downloaded (that was easy!)');
    }
    }
    );
  2. RobK revised this gist May 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    var photoBox = require('photobox-downloader');
    var config = {
    "baseDomain" : "www.photobox.ie",
    "authCookieValue" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // change this value to your own authentication cookie value
    "authCookieValue" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // change to your own auth cookie value
    };

    // Login and download all photos from every album
  3. RobK revised this gist May 4, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion example.js
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@ var photoBox = require('photobox-downloader');
    var config = {
    "baseDomain" : "www.photobox.ie",
    "authCookieValue" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // change this value to your own authentication cookie value

    };

    // Login and download all photos from every album
  4. RobK renamed this gist May 4, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. RobK created this gist May 4, 2014.
    29 changes: 29 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    var photoBox = require('photobox-downloader');
    var config = {
    "baseDomain" : "www.photobox.ie",
    "authCookieValue" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // change this value to your own authentication cookie value

    };

    // Login and download all photos from every album
    photoBox.login(config, function (err) {
    if (err) {
    console.log('ERROR! Something went wrong logging in, check your authCookieValue!');
    console.log(err);
    } else {
    console.log('Logged into Photobox!');
    photoBox.downloadAll(
    {
    showProgress : true,
    outputDir : __dirname + '/out'
    },
    function (err) {
    if (err) {
    console.log(err);
    } else {
    console.log('Finished, all photos in every album have now been downloaded (that was easy!)');
    }
    }
    );
    }
    });