Update translate-feed.py
This commit is contained in:
parent
0eb6365721
commit
001c39825e
@ -9,7 +9,7 @@
|
|||||||
# curl 'https://phys.org/rss-feed/' | python ./translate-feed.py "en" "pt_BR" "true"
|
# curl 'https://phys.org/rss-feed/' | python ./translate-feed.py "en" "pt_BR" "true"
|
||||||
#
|
#
|
||||||
# You must provide three command line arguments:
|
# 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 json
|
||||||
import re
|
import re
|
||||||
@ -125,4 +125,4 @@ else:
|
|||||||
out_xml = ET.tostring(rss_document)
|
out_xml = ET.tostring(rss_document)
|
||||||
out_decoded_xml = out_xml.decode()
|
out_decoded_xml = out_xml.decode()
|
||||||
|
|
||||||
print(out_decoded_xml)
|
print(out_decoded_xml)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user