I am looking for a way to login to twitch through PhantomJS. The code I have now is not working when I look through "e.png"
var page = require('webpage').create();
page.open('http://ift.tt/1y4pxYX', function() {
page.includeJs("http://ift.tt/K7373y", function() {
page.evaluate(function() {
$("login_user_login").val("username")
$("user[password]").val("password")
$("button").click() // click login button
page.render("e.png") // see if anything happens
});
phantom.exit()
});
});
I have found a link on how to do it through selenium here: Selenium Twitch
Aucun commentaire:
Enregistrer un commentaire