xjkj123 / SharesData

7 stars 3 forks source link

GetDayData 报错 #1

Open xxm1988 opened 7 years ago

xxm1988 commented 7 years ago

ShareClass().GetDayData(code='600000',start='1980-01-01',end="",zs=False)

ShareClass().GetDayData(code='600000',start='1991-01-01',end="",zs=False) Traceback (most recent call last): File "", line 1, in File "ShareData.py", line 85, in GetDayData dfgb = ShareClass().GetGuben(code) File "ShareData.py", line 321, in GetGuben x = BeautifulSoup(ret.text, "html.parser") File "/usr/lib64/python2.6/site-packages/bs4/init.py", line 228, in init self._feed() File "/usr/lib64/python2.6/site-packages/bs4/init.py", line 289, in _feed self.builder.feed(self.markup) File "/usr/lib64/python2.6/site-packages/bs4/builder/_htmlparser.py", line 219, in feed raise e HTMLParser.HTMLParseError: malformed start tag, at line 262, column 59

xxm1988 commented 7 years ago

搞定了,改成html5lib方式就好了