I have a file with a bunch of information. For example, all of the lines follow the same pattern as this:
Nebraska
You've cut off part of the string. Keep going in the same fashion:
>>> s = 'Nebraska' >>> s.split('>')[1] 'Nebraska>> s.split('>')[1].split('<')[0] 'Nebraska'
That said, you should parse HTML with an HTML parser like BeautifulSoup.