billpeace
unread,Jun 14, 2009, 2:23:57 PM6/14/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to beautifulsoup
there are some problem in htmlparser.py
Problem is:
part of html source code is like follow
u '<font size=4.5 face=\u6977\u4f53_GB2312>'
in "/usr/lib/python2.5/HTMLParser.py", line 263, in parse_starttag
attrname, rest, attrvalue = m.group(1, 2, 3)
when there are exist utf8 code , Regular can't capture correct groups
in the pattern
face=\u6977\u4f53_GB2312 :
attrname='face'
rest= '='
attrvalue= ' '
how can i get correct groups