Skip to content

Instantly share code, notes, and snippets.

@qzwpq
Created October 8, 2015 08:34
Show Gist options
  • Save qzwpq/ffe37b7b315f8b9a64b4 to your computer and use it in GitHub Desktop.
Save qzwpq/ffe37b7b315f8b9a64b4 to your computer and use it in GitHub Desktop.
#!/usr/bin/node --harmony
const data = {
username: '12X34567',
password: 'abcde12345'
};
const address = [
'https://',
'\x77\x6C\x61\x6E\x61\x75\x74\x68\x2E\x6E\x6F\x63\x2E\x74\x69\x74\x65\x63\x68\x2E\x61\x63\x2E\x6A\x70\x2F\x6C\x6F\x67\x69\x6E',
'.html'
].join('');
const Nightmare = require('nightmare');
const fuck = function* () {
yield Nightmare()
.goto(address)
.type('input[name="username"]', data.username)
.type('input[name="password"]', data.password)
.click('input.button')
.run();
};
fuck().next();
@qzwpq
Copy link
Author

qzwpq commented Oct 8, 2015

エラーは無視してOK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment