diff options
| author | marc <a01200356@itesm.mx> | 2016-12-16 22:14:14 -0600 |
|---|---|---|
| committer | marc <a01200356@itesm.mx> | 2016-12-16 22:14:14 -0600 |
| commit | 4a1ff56389d6ad560594ba82b448aef1d70bbbf4 (patch) | |
| tree | d55a24910d102b682ec570e561a3613584655818 /searx/engines/wikipedia.py | |
| parent | af35eee10b98940c51c6e5e18629de514b4bd48d (diff) | |
minor fixes in utils/fetch_languages.py
Diffstat (limited to 'searx/engines/wikipedia.py')
| -rw-r--r-- | searx/engines/wikipedia.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py index 322e8d128..78acd349d 100644 --- a/searx/engines/wikipedia.py +++ b/searx/engines/wikipedia.py @@ -131,7 +131,8 @@ def _fetch_supported_languages(resp): name = td[2].xpath('./a')[0].text english_name = td[1].xpath('./a')[0].text articles = int(td[4].xpath('./a/b')[0].text.replace(',', '')) - if articles >= 10000: + # exclude languages with too few articles + if articles >= 100000: supported_languages[code] = {"name": name, "english_name": english_name, "articles": articles} return supported_languages |