import webbrowser
import urllib2
login_user = raw_input('Please enter your username. ')
login_pass = raw_input('Please enter your password. ')
login_url = 'http://www.hackforums.net/member.php?action=login'
login_usock = urllib2.urlopen(login_url)
login_data = login_usock.read()
login_usock.close()
login_html = login_data
login_html = login_html.replace("", "")
login_html = login_html.replace("", "")
print login_html
thread_id = raw_input('Please enter the thread id, found in the url of the thread. ')
thread_url = 'http://www.hackforums.net/showthread.php?tid=' + thread_id
thread_usock = urllib2.urlopen(thread_url)
thread_data = thread_usock.read()
thread_usock.close()
thread_html = thread_data
print thread_html
raw_input('Press ENTER to exit!')