|
1 | | -TOP_HEADLINES_URL = 'https://newsapi.org/v2/top-headlines' |
2 | | -EVERYTHING_URL = 'https://newsapi.org/v2/everything' |
3 | | -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'} |
| 1 | +TOP_HEADLINES_URL = "https://newsapi.org/v2/top-headlines" |
| 2 | +EVERYTHING_URL = "https://newsapi.org/v2/everything" |
| 3 | +SOURCES_URL = "https://newsapi.org/v2/sources" |
| 4 | +countries = { |
| 5 | + "ae", |
| 6 | + "ar", |
| 7 | + "at", |
| 8 | + "au", |
| 9 | + "be", |
| 10 | + "bg", |
| 11 | + "br", |
| 12 | + "ca", |
| 13 | + "ch", |
| 14 | + "cn", |
| 15 | + "co", |
| 16 | + "cu", |
| 17 | + "cz", |
| 18 | + "de", |
| 19 | + "eg", |
| 20 | + "es", |
| 21 | + "fr", |
| 22 | + "gb", |
| 23 | + "gr", |
| 24 | + "hk", |
| 25 | + "hu", |
| 26 | + "id", |
| 27 | + "ie", |
| 28 | + "il", |
| 29 | + "in", |
| 30 | + "is", |
| 31 | + "it", |
| 32 | + "jp", |
| 33 | + "kr", |
| 34 | + "lt", |
| 35 | + "lv", |
| 36 | + "ma", |
| 37 | + "mx", |
| 38 | + "my", |
| 39 | + "ng", |
| 40 | + "nl", |
| 41 | + "no", |
| 42 | + "nz", |
| 43 | + "ph", |
| 44 | + "pk", |
| 45 | + "pl", |
| 46 | + "pt", |
| 47 | + "ro", |
| 48 | + "rs", |
| 49 | + "ru", |
| 50 | + "sa", |
| 51 | + "se", |
| 52 | + "sg", |
| 53 | + "si", |
| 54 | + "sk", |
| 55 | + "th", |
| 56 | + "tr", |
| 57 | + "tw", |
| 58 | + "ua", |
| 59 | + "us", |
| 60 | + "ve", |
| 61 | + "za", |
| 62 | + "zh", |
| 63 | +} |
8 | 64 |
|
9 | | -languages = {'ar','en','cn','de','es','fr','he','it','nl','no','pt','ru','sv','se','ud','zh'} |
| 65 | +languages = {"ar", "en", "cn", "de", "es", "fr", "he", "it", "nl", "no", "pt", "ru", "sv", "se", "ud", "zh"} |
10 | 66 |
|
11 | | -categories = {'business', 'entertainment', 'general', 'health', 'science', 'sports', 'technology'} |
| 67 | +categories = {"business", "entertainment", "general", "health", "science", "sports", "technology"} |
12 | 68 |
|
13 | | -sort_method = {'relevancy','popularity','publishedAt'} |
| 69 | +sort_method = {"relevancy", "popularity", "publishedAt"} |
0 commit comments