OxbridgeEconomics
commited on
Commit
·
ae6aa5f
1
Parent(s):
469400a
commit
Browse files- 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
|
143 |
content_eng += translator.translate(element, dest='en').text + ' '
|
144 |
-
|
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'])
|