In article <3f9c74cf-72f4-45e2-8724-3939366d1...@e24g2000vbe.googlegroups.com>, Matteo <tadweles...@gmail.com> wrote: > >I have to fill a web form to authenticate and connect to the internet. >I thought it would have been easy to make a script to do that >automatically on startup. > >Unfortunately, it turned out that the form is written in JavaScript, >and urllib2 therefore fails to even fetch the form.
Depending on whether you can reverse-engineer the form, you can either just POST data to the webserver or you need to access a JavaScript library. Selenium might be an answer to the latter problem; you could also look into using WebKit. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "It is easier to optimize correct code than to correct optimized code." --Bill Harlan -- http://mail.python.org/mailman/listinfo/python-list