Python fetching webpage data
<p>I'm trying to create a program that fetches the html from the tv catchup website, then uses the split function to split up all the html data into just the channel name and the program that is currently on in a table, such as: BBC 1 - 'program name'. I just need help on what i do after my first split function if anyone can help that would be greatly appreciated. </p>

<pre><code>import urllib2
import string


proxy = urllib2.ProxyHandler({"http" : "http://c99.cache.e2bn.org:8084"})

opener = urllib2.build_opener(proxy)

urllib2.install_opener(opener)

tvCatchup = urllib2.urlopen('http://www.TVcatchup.com')

html = tvCatchup.read()

firstSplit = html.split('&lt;a class="enabled" href="/watch.html?c=')[1:]
for i in firstSplit:
    print i

secondSplit = html.split ('1" title="BBC One"&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="v-type" style="color:#6d6d6d;"&gt;')[1:]

for i in secondSplit:
print i
</code></pre>
