OxbridgeEconomics commited on
Commit
ae6aa5f
·
1 Parent(s): 469400a
Files changed (1) hide show
  1. eastmoney.py +2 -2
eastmoney.py CHANGED
@@ -139,9 +139,9 @@ while i > -1:
139
  report['originalAuthor'] = report['researcher']
140
  report['originalContent'] = content
141
  content_eng = ''
142
- for element in article['originalContent'].split("。"):
143
  content_eng += translator.translate(element, dest='en').text + ' '
144
- article['content'] = content_eng
145
  report['authorid'] = uuid.uuid5(uuid.NAMESPACE_OID, report['author'])
146
  report['publishDate'] = datemodifier(report['publishDate'])
147
  report['id'] = uuid.uuid5(uuid.NAMESPACE_OID, report['title']+report['publishDate'])
 
139
  report['originalAuthor'] = report['researcher']
140
  report['originalContent'] = content
141
  content_eng = ''
142
+ for element in report['originalContent'].split("。"):
143
  content_eng += translator.translate(element, dest='en').text + ' '
144
+ report['content'] = content_eng
145
  report['authorid'] = uuid.uuid5(uuid.NAMESPACE_OID, report['author'])
146
  report['publishDate'] = datemodifier(report['publishDate'])
147
  report['id'] = uuid.uuid5(uuid.NAMESPACE_OID, report['title']+report['publishDate'])