From 23fcf1acc62e0f32f479c12c1916b2b1dd922199 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Tue, 1 Apr 2014 01:21:59 -0400 Subject: Support the new Humble Bundle page Use PhantomJS to handle the dynamically generated page and captchas. Add options to specify the location of PhantomJS scripts and configuration file. Update README on requirements, usage, and debugging information. Update CHANGELOG. --- login.coffee | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 login.coffee (limited to 'login.coffee') diff --git a/login.coffee b/login.coffee new file mode 100644 index 0000000..c129622 --- /dev/null +++ b/login.coffee @@ -0,0 +1,12 @@ +system = require 'system' +[_, login_page, username, password] = system.args + +util = require './util' +page = util.page + +page.open login_page, (status)-> + util.log "Opening login page: #{status}" + util.handle_login_captcha -> + phantom.exit() + , username, password + -- cgit v1.2.3-70-g09d2