lingot 0 Posted December 23, 2010 Report Share Posted December 23, 2010 I'm trying to create yahoo mail registration bot and have come across a problem. The check to see if your desired name is available or not is all done in javascript. How would you go about detecting this in ubot? When clicking the 'check' button the the source doesn't change, so scraping it seems useless. Thanks for any help. Quote Link to post Share on other sites
Guerrilla 19 Posted December 24, 2010 Report Share Posted December 24, 2010 To my understanding ubot will be able to scrape it as ubot handles source code a little differently to normal browser. Did you try to scrape it yet? Just add in a delay before you try to scrape it. Quote Link to post Share on other sites
Guerrilla 19 Posted December 24, 2010 Report Share Posted December 24, 2010 Just checked and had no problem scraping this. Field name for me was "yahooIdFldMsg" Quote Link to post Share on other sites
lingot 0 Posted December 24, 2010 Author Report Share Posted December 24, 2010 Just checked it now and scraping "yahooIdFldMsg" does seem to work. Thanks for the pointer!Is there anywhere I can read about how ubot handles javascript? Quote Link to post Share on other sites
Guerrilla 19 Posted December 25, 2010 Report Share Posted December 25, 2010 No idea, I just know what I have found in last couple weeks going through the forum. I think ubot reads the rendered source code after the javascript has executed. For instance if a page uses document.write() you will be able to scrape the text written as onpage content. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.