Skip to content

Commit 21ed2b8

Browse files
menarguezmattlisiv
authored andcommitted
Adding new countries and languages that were missing (#41)
- New countries: ["pk", "es", "is", "se", "zh"] - New languages:["se", "zh"])
1 parent 88752b6 commit 21ed2b8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

newsapi/const.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
TOP_HEADLINES_URL = 'https://newsapi.org/v2/top-headlines'
22
EVERYTHING_URL = 'https://newsapi.org/v2/everything'
33
SOURCES_URL = 'https://newsapi.org/v2/sources'
4+
countries = {'ae','ar','at','au','be','bg','br','ca','ch','cn','co','cu','cz','de','eg','es','fr','gb','gr',
5+
'hk','hu','id','ie','il','in','is','it','jp','kr','lt','lv','ma','mx','my','ng','nl','no','nz',
6+
'ph','pk','pl','pt','ro','rs','ru','sa','se','sg','si','sk','th','tr','tw','ua','us','ve','za',
7+
'zh'}
48

5-
countries = {'ae','ar','at','au','be','bg','br','ca','ch','cn','co','cu','cz','de','eg','fr','gb','gr','hk',
6-
'hu','id','ie','il','in','it','jp','kr','lt','lv','ma','mx','my','ng','nl','no','nz','ph','pl',
7-
'pt','ro','rs','ru','sa','se','sg','si','sk','th','tr','tw','ua','us','ve','za'}
8-
9-
languages = {'ar','en','cn','de','es','fr','he','it','nl','no','pt','ru','sv','ud'}
9+
languages = {'ar','en','cn','de','es','fr','he','it','nl','no','pt','ru','sv','se','ud','zh'}
1010

1111
categories = {'business', 'entertainment', 'general', 'health', 'science', 'sports', 'technology'}
1212

0 commit comments

Comments
 (0)