Nevermind sorry, It has failed
Results 1 to 9 of 9
- 22 May. 2010 05:00pm #1
[Source Python] Gaiaonline Login.
Last edited by Bman; 22 May. 2010 at 06:04pm.
Shh, I'm watching My little pony.
- 22 May. 2010 06:13pm #2
yea mine is fucked up too..
Its one of riddles actually.
Code: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")
Code:self.sessionID = self.HTTP.Cookie_Jar._cookies[".gaiaonline.com"]["/"]["gaia5_sid"].value print(self.sessionID)
Code:self.sessionID = self.HTTP.Cookie_Jar._cookies[".gaiaonline.com"]["/"]["gaia5_sid"].value KeyError: '.gaiaonline.com'
- 22 May. 2010 10:43pm #3Code:
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")
Shh, I'm watching My little pony.
- 23 May. 2010 03:29am #4
- 24 May. 2010 04:14am #5
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.
- 24 May. 2010 04:18am #6
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?
- 24 May. 2010 04:30am #7
Yeah, the session class I gave those guys handles cookies by itself.
- 24 May. 2010 04:41am #8
Oh okay. I was like "... Is he bullshitting...?"
Thanks for clearing it up.
- 24 May. 2010 05:02am #9
Haha, no problem. XD