To remove the above Type error that you are getting while using the super(). The super() can only be used in the new-style classes, that means the root or the parent class needs to inherit from the 'object' class
An example, that shows how the root class need to be:
class SomeClass(object):
def __init__(self): ....
The solution for this is to call the parent's init method directly like as follows:
from HTMLParser import HTMLParser
class TextParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.all_data = []