Can someone tell me what is wrong with this code. I keep getting string indices must be integers and I have tried everything I can think of. Its actually in an if statement but I stripped it down to this to see if i could find the problem. The Find is returning 23 for the string I am searching. I added the int function to see if that would fix it.
stringloc = 1
stringloc = text.find('http')
print(stringloc)
print(text[0, int(stringloc)])
Here is the return message print(text[0, int(stringloc)]) TypeError: string indices must be integers