From 001c39825e97c026b26a171838bee40506ffdd08 Mon Sep 17 00:00:00 2001 From: martinrotter Date: Thu, 23 Sep 2021 11:26:43 +0200 Subject: [PATCH] Update translate-feed.py --- resources/scripts/scrapers/translate-feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/scripts/scrapers/translate-feed.py b/resources/scripts/scrapers/translate-feed.py index 433a50249..6a1993896 100644 --- a/resources/scripts/scrapers/translate-feed.py +++ b/resources/scripts/scrapers/translate-feed.py @@ -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) \ No newline at end of file +print(out_decoded_xml)