From 15fc3414572f5cb92370577ef13b9258cf9e0de4 Mon Sep 17 00:00:00 2001 From: owosrl Date: Sat, 25 Mar 2023 09:35:44 +0100 Subject: [PATCH] Updated languages following ISO-639-1 (no 'cn' and 'en-US') 'se' language code is not available in NewsAPI --- newsapi/const.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/newsapi/const.py b/newsapi/const.py index a12364f..e204117 100644 --- a/newsapi/const.py +++ b/newsapi/const.py @@ -69,8 +69,7 @@ #: The 2-letter ISO-639-1 code of the language you want to get articles for. If not specified, #: the results span all languages. -languages = {"ar", "en", "cn", "de", "es", "fr", "he", "it", "nl", "no", "pt", "ru", "sv", "se", "ud", "zh", - "en-US"} +languages = {"ar", "en", "de", "es", "fr", "he", "it", "nl", "no", "pt", "ru", "sv", "ud", "zh"} #: The category you want to get articles for. If not specified, #: the results span all categories.