For example, I want to download this page after inserting username and password:
http://forum.ubuntu-it.org/
I have tryed with wget but doe
You can use the urllib2 module and with that it is possible do to basic and form based authentication (with cookies support).
Here is a nice tutorial on your issue.