BeautifulSoup

John Bokma john at castleamber.com
Fri Jan 15 17:03:11 EST 2010


John Bokma <john at castleamber.com> writes:

> yamamoto <blueskykind02 at gmail.com> writes:
>
>> Hi,
>> I am new to Python. I'd like to extract "a" tag from a website by
>> using "beautifulsoup" module.
>> but it doesnt work!
>
> [..]
>
>> check_for_whole_start_tag
>>     self.error("malformed start tag")
>>   File "C:\Python26\lib\HTMLParser.py", line 115, in error
>>     raise HTMLParseError(message, self.getpos())
>> HTMLParser.HTMLParseError: malformed start tag, at line 276, column 36
>>
>> any suggestion?
>
> I guess you're using 3.1.0. If yes, see:
> http://www.crummy.com/software/BeautifulSoup/3.1-problems.html
>
> You might want to do:
>
>     sudo easy_install -U "BeautifulSoup==3.0.7a"
>
> and try again. 

Forgot to add, see also:
http://johnbokma.com/mexit/2009/09/26/python-downgrading-beatifulsoup.html

-- 
John Bokma                                                               j3b

Hacking & Hiking in Mexico -  http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development



More information about the Python-list mailing list