BeautifulSoup

John Bokma john at castleamber.com
Fri Jan 15 16:56:39 EST 2010


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. 

-- 
John Bokma                                                               j3b

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



More information about the Python-list mailing list