I would suggest you read section 3.3.4 here
. That said, I use mechanize and lxml to do all my scraping, or urllib and urllib2 instead of mechanize when logging in is not required.
Also, if this question didn't have the issue of the terms and conditions, you'd still have to provide your entire code attempt before we would really help you with this.
Due to the reasons discussed here
we will be moving to python-forum.io
on October 1, 2016.
This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.