Open BirkhoffLee opened 3 years ago
Example code:
articut = ArticutAPI.Articut() tourContent = jsonTextReader("./tourblog.json")["content"] parsed = articut.parse(tourContent, level="lv2")
articut.parse prints out:
articut.parse
{'status': False, 'msg': 'Your input_str is too long (over 2000 characters.)', 'product': 'https://api.droidtown.co/product/', 'document': 'https://api.droidtown.co/document/'}
如同 msg 裡提到的,你的 input_str 太長了!(一次超過 2000 個字符) 請分段送入 parse() 吧。:)
Example code:
articut.parse
prints out: