Sha256: b307e407ee4651eaf720fce59ad26c019984315e6004a0c24ec22c3fad203b51
Contents?: true
Size: 590 Bytes
Versions: 17
Compression:
Stored size: 590 Bytes
Contents
# Upload an image to imagebin.org page = require('webpage').create() system = require 'system' if system.args.length isnt 2 console.log 'Usage: imagebin.coffee filename' phantom.exit 1 else fname = system.args[1] page.open 'http://imagebin.org/index.php?page=add', -> page.uploadFile 'input[name=image]', fname page.evaluate -> document.querySelector('input[name=nickname]').value = 'phantom' document.querySelector('input[name=disclaimer_agree]').click() document.querySelector('form').submit() window.setTimeout -> phantom.exit() , 3000
Version data entries
17 entries across 17 versions & 2 rubygems