[Source Python] Gaiaonline Login.
1.7k views · started by Bman ·
yea mine is fucked up too..
Its one of riddles actually.
I get error with the most important part.. Setting the cookies. With
Its one of riddles actually.
def Login(self, username=None, password=None):
if username != None:
self.username = username
if password != None:
self.password = password
if self.username == None or self.password == None:
raise SessionException("Username or password not supplied")
form = { "username" : username,
"password" : password }
url = "http://login.gaiaonline.com/gaia/login.php"
contents = self.HTTP.get2(url, form)
self.sessionID = self.HTTP.Cookie_Jar._cookies[".gaiaonline.com"]["/"]["gaia5_sid"].value
print(self.sessionID)
if len(self.sessionID) <= 32:
if contents.find("blocked") > 0:
raise SessionException("Account Banned")
else:
raise SessionException("Invalid username/password")I get error with the most important part.. Setting the cookies. With
self.sessionID = self.HTTP.Cookie_Jar._cookies[".gaiaonline.com"]["/"]["gaia5_sid"].value
print(self.sessionID) i getself.sessionID = self.HTTP.Cookie_Jar._cookies[".gaiaonline.com"]["/"]["gaia5_sid"].value
KeyError: '.gaiaonline.com' def Login(self, username=None, password=None):
if username != None:
self.username = username
if password != None:
self.password = password
if self.username == None or self.password == None:
raise SessionException("Username or password not supplied")
form = { "username" : username,
"password" : password }
url = "http://www.gaiaonline.com/auth/login"
contents = self.HTTP.get2(url, form)
self.sessionID = self.HTTP.Cookie_Jar._cookies[".gaiaonline.com"]["/"]["gaia5_sid"].value
print(self.sessionID)
if len(self.sessionID) <= 32:
if contents.find("blocked") > 0:
raise SessionException("Account Banned")
else:
raise SessionException("Invalid username/password")Also, you will need to do something with the Token and Frob, I fixed the login link ;P
Hmph. Ill look into it tomorrow. Just got some pizza and stuff. Ordered it from pizza hut at 11pm >.< They still deliver this late.
The only updated login functions I gave you guys are from the TekTek profiler program. The other ones are OLD! I believe that you don't need to store cookies. Use the new scripts, eliminates the need to use cookies. Just make a new HTTP Wrapper instance and use it.
Wait what.
Eliminated the need to use cookies?
How does that work given that cookies are required to be logged in?
Or does the latest version of python handle cookies on its own?
Eliminated the need to use cookies?
How does that work given that cookies are required to be logged in?
Or does the latest version of python handle cookies on its own?
Yeah, the session class I gave those guys handles cookies by itself.
Oh okay. I was like "... Is he bullshitting...?"
Thanks for clearing it up.
Thanks for clearing it up.
Haha, no problem. XD
