tweaked sample description annotation
Showing
6 changed files
with
17 additions
and
21 deletions
1 | /* | 1 | /* |
2 | Capture multiple pages of google search results | 2 | * Capture multiple pages of google search results |
3 | 3 | * | |
4 | Usage: $ casperjs googlepagination.coffee my search terms | 4 | * Usage: $ casperjs googlepagination.coffee my search terms |
5 | 5 | * | |
6 | (all arguments will be used as the query) | 6 | * (all arguments will be used as the query) |
7 | */ | 7 | */ |
8 | 8 | ||
9 | var casper, currentPage, processPage; | 9 | var casper, currentPage, processPage; |
10 | 10 | ... | ... |
1 | /* | 1 | /* |
2 | This script will capture a screenshot of a twitter account page | 2 | * This script will capture a screenshot of a twitter account page |
3 | Usage: $ casperjs screenshot.coffee <twitter-account> <filename.[jpg|png|pdf]> | 3 | * Usage: $ casperjs screenshot.coffee <twitter-account> <filename.[jpg|png|pdf]> |
4 | */ | 4 | */ |
5 | 5 | ||
6 | var casper, filename, twitterAccount; | 6 | var casper, filename, twitterAccount; |
7 | 7 | ... | ... |
1 | /* | 1 | /* |
2 | This script will add a custom HTTP status code handler, here for 404 pages. | 2 | * This script will add a custom HTTP status code handler, here for 404 pages. |
3 | */ | 3 | */ |
4 | 4 | ||
5 | var casper; | 5 | var casper = require("casper").create({ |
6 | |||
7 | casper = require("casper").create({ | ||
8 | httpStatusHandlers: { | 6 | httpStatusHandlers: { |
9 | 404: function(self, resource) { | 7 | 404: function(self, resource) { |
10 | this.echo("Resource at " + resource.url + " not found (404)", "COMMENT"); | 8 | this.echo("Resource at " + resource.url + " not found (404)", "COMMENT"); | ... | ... |
-
Please register or sign in to post a comment