import urllib2
url = "http://www.bdfutbol.com/es/t/t2012-13.html"
request = urllib2.Request(url)
handle = urllib2.urlopen(request)
content = handle.read()
splitted_page = content.split('<div class="divclassificacio">', 1);
splitted_page = splitted_page[1].split("</div>", 1);
print "Downloads: " + splitted_page[0]
So I just wrote this code to retrieve data, in html, from a soccer website using python. I am having issues writing the result into a file, and also displaying the table in python, which is what the code's for.
Also, I was wondering if anybody knew how can I transfer the table or the data into a MySql table?