mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-27 08:33:27 +01:00
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"
|
||||
#
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user