Problem with Fb login

140 views
Skip to first unread message

Ashutosh Das

unread,
Apr 22, 2014, 8:41:09 AM4/22/14
to zomb...@googlegroups.com
I am trying to login facebook using Zombie.js . But dont know why its not working .

    var Browser = require("zombie");
   var browser = new Browser({ debug: false });
   browser.visit('http://www.facebook.com', function(){
   browser.
        fill("#email", "user email").
        fill("#pass","user password").
        pressButton("#u_0_n", function() {

            // Form submitted, new page loaded.
            console.log(browser.location.href);
            //browser.dump()
            browser.window.close();

        })
})



Its returning https://www.facebook.com/login.php?login_attempt=1 . Any idea whats wrong in my code ?

Assaf Arkin

unread,
Apr 22, 2014, 2:56:01 PM4/22/14
to Ashutosh Das, zomb...@googlegroups.com
Zombie was not designed for scraping web sites.


--
You received this message because you are subscribed to the Google Groups "zombie.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zombie-js+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

–––––

Subscribe to Weekend Reading, a newsletter about design, code, startup life and the occasional odd

Reply all
Reply to author
Forward
0 new messages