import urllib import urllib2 import cookielib print "Expolit and Damage ... Project Bee" url = "http://www.torn.com/authenticate.php" username = raw_input("Your name: ") password = raw_input("Your password: ") query = {'username': username, 'password': password} data_query = urllib.urlencode(query) cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) sending_data = opener.open(url, data_query) print sending data print response.read() print response.info() print response.geturl()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)