John Bokma <j...@castleamber.com> writes: > yamamoto <blueskykin...@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 -- http://mail.python.org/mailman/listinfo/python-list