Update translate-feed.py

This commit is contained in:
martinrotter 2021-09-23 11:26:43 +02:00 committed by GitHub
parent 0eb6365721
commit 001c39825e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
# curl 'https://phys.org/rss-feed/' | python ./translate-feed.py "en" "pt_BR" "true"
#
# You must provide three command line arguments:
# translate-feed.py [FROM-LANGUAGE] [TO-LANGUAGE] [RUN-PARALLEL]
# translate-feed.py [FROM-LANGUAGE] [TO-LANGUAGE] [RUN-PARALLEL] [FEED-ENCODING (optional)]
import json
import re
@ -125,4 +125,4 @@ else:
out_xml = ET.tostring(rss_document)
out_decoded_xml = out_xml.decode()
print(out_decoded_xml)
print(out_decoded_xml)