Skip to content

Instantly share code, notes, and snippets.

@oloynet
oloynet / avis-situation-insee.js
Last active December 16, 2015 19:39
This casperjs script return PDF notice insee position in France for a given 'siren' account. This script is only for your personal use at your own risk
/**
* This casperjs script return PDF notice insee position in France for a given 'siren' account.
* This script is only for your personal use at your own risk.
*
* Usage:
*
* $ casperjs avis-situation-insee.js siren-number
* $ casperjs avis-situation-insee.js 123456789
* $ casperjs avis-situation-insee.js 123456789 --filename=myfile.pdf
*
@oloynet
oloynet / credit-agricole.js
Last active June 5, 2018 11:38
This casperjs script return balance and statement from bank "Credit Agricole of Languedoc (France)" for a given account. May work with other agencies. Data are return in json Usage: casperjs credit-agricole.js --auth=12345678912:123456 --json
/**
* This casperjs script return balance and statement from bank "Credit Agricole of Languedoc (France)" for a given account.
* May work with other agencies
*
* Usage:
*
* $ casperjs credit-agricole.js --auth=12345678912:123456
* $ casperjs credit-agricole.js --auth=12345678912:123456 --account=12345678912
* $ casperjs credit-agricole.js --auth=12345678912:123456 --account=12345678912 --json
* $ casperjs credit-agricole.js http://www.ca-languedoc.fr/ --auth=12345678912:123456 --account=12345678912 --json
@oloynet
oloynet / screenshot.js
Created February 14, 2013 21:51
Just my two cents for screenshot with a size parameter
/**
* This script will capture a screenshot of a webpage page
* Usage: $ casperjs screenshot.js <url> <filename.[jpg|png|pdf]> [--size=800x600] [--rename]
*
* QVGA (320x240)
* HVGA (480x320)
* VGA (640x480)
* SVGA (800x600)
* XGA (1024x768)
* HD (1280x720)
@oloynet
oloynet / resourcetiming.js
Created February 8, 2013 16:20
Catch all the resource load times with casperjs
var casper = require("casper").create({
//loadImages: false,
//logLevel: 'debug',
verbose: true
});
var utils = require('utils');
/* ----- test parameters ----- */