Created
November 21, 2015 18:02
-
-
Save younes200/6b45598cdb0bb6e540b2 to your computer and use it in GitHub Desktop.
Sent tweet with casperJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require("casper").create({ | |
verbose: true, | |
}); | |
casper.start("http://twitter.com/intent/tweet", function() { | |
casper.evaluate( function() { | |
document.querySelector('#status').value = ' *Insert tweet here* '; | |
document.querySelector('#username_or_email').value = ' *Insert username here* '; | |
document.querySelector('#password').value = ' *Insert password here* '; | |
document.querySelector('.button').click(); | |
}); | |
}); | |
casper.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment