I am able to use twill
to log in to a normal HTTP site. However, when I try and log into an SSL site, I get the following error:
$ twill-sh
>> go http://www.google.com
==> at http://www.google.com
>> go http://itunesconnect.apple.com/WebObjects/iTunesConnect.woa
ERROR: No module named mechanize
current page: *empty page*
What is the reason I am getting this error, which I think has to do with the security of the itunes page? And how would I log into the given page via command-line?
I believe, python-mechanize (Ubuntu name for it, may vary for other systems) and maybe some other dependencies are somehow not installed (or removed) on your system. While twill distro provides its own mechanize, distros usually make sure to do it right.
Before resorting to sudo easy_install, consider finding and installing packages by using your distro's way.
On Ubuntu:
sudo apt-get install python-mechanize