Riddle, your HTTP Class is fucked... Nuff said, It wont post data to Gaia
Im ready to Ragequit python...
Results 1 to 9 of 9
Thread: [Python] Weird Errors
- 22 May. 2010 12:09pm #1
[Python] Weird Errors
Last edited by Bman; 22 May. 2010 at 01:00pm.
Shh, I'm watching My little pony.
- 22 May. 2010 01:01pm #2
- 22 May. 2010 01:22pm #3
Already tried.
Also, The fucking Getstringbetween function is GAY.
It never returns anything >.>
Code:if Gaia.Login(user,passw) !=False: Gold_Start = "<span id=\"gold_amt\">" Gold_End = "</span>" Html = http.GET("http://www.gaiaonline.com") Gold = (self.g.GetBetween(self,Html,Gold_Start,Gold_End)) print(Gold)
Python hates me
Edit :
Now its constantly returning none.
Just 'None'
Ughh, I fucking hate this >.>Last edited by Bman; 22 May. 2010 at 01:27pm.
Shh, I'm watching My little pony.
- 22 May. 2010 03:42pm #4
- 22 May. 2010 04:58pm #5
Fixed it.
Thanks anyways guysShh, I'm watching My little pony.
- 24 May. 2010 04:09am #6
Heh. Bman, I don't know what you did wrong... but next time post a script that re-creates the error you were winning about.
- 24 May. 2010 04:11am #7
That could have been phrased so much better.
Anyway, @OP, Could you post the getstringbetween function?
I want to see the python version. (That script has been passed around and ported since the original was posted [AutoIt])
I may also fix it, if i can understand it. (I don't know Python)
- 24 May. 2010 08:58pm #8Code:
def GetBetween(self, content, start, end): """Returns '' on no match""" r = content.split(start) if len(r) > 1: r = r[1].split(end) return r[0] return ''
- 24 May. 2010 09:09pm #9
Error fixed
The error was right infront of my face O:
I forgot to use a self.NamehereShh, I'm watching My little pony.