On May 21, 8:04 pm, alex23 <[EMAIL PROTECTED]> wrote:
> Is your Spider class a subclass of HTMLParser? Is it over-riding
> __init__? If so, is it doing something like:
>
>     super(Spider, self).__init__()
>
> If this is your issue[...]

I'm sorry, this really wasn't clear at all. What I meant was that you
need to call the HTMLParser.__init__ inside your Spider.__init__ in
order to have it initialise properly. Failing to do so would lead to
the .rawdata attribute not being defined. The super() function is the
best way to achieve this.

Sorry for the rambling, hopefully some of that is relevant.

- alex23
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to