I am trying to open a password protected web-link with the default browser from my python script. I am aware of this post. But os.startfile(url)
and webbrowser.open(url)
only works for link without password as far as i tried.
And i am aware of urllib
urllib2
and mechanize
but i want it to open it in the browser so that the user can start using the password protected page without having to type in username and password again and again (password and username will be hardcoded in script)
Is there anyway to do this?
EDIT: FYI, i only need it for Window platform