OxbridgeEconomics
commited on
Commit
·
469400a
1
Parent(s):
b82b826
commit
Browse files- eastmoney.py +3 -3
eastmoney.py
CHANGED
@@ -139,9 +139,9 @@ while i > -1:
|
|
139 |
report['originalAuthor'] = report['researcher']
|
140 |
report['originalContent'] = content
|
141 |
content_eng = ''
|
142 |
-
|
143 |
-
|
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 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'])
|