Re: scrapy xpath extraction 以及其編碼的問題

作者: panpass (往往往往)   2014-12-03 02:42:43
import HTMLParser as HP
s = u"結婚並無Z>B"
h = HP.HTMLParser()
print h.unescape(s).encode("utf-8")

Links booklink

Contact Us: admin [ a t ] ucptt.com