forked from zaclys/searxng
remove articles number from engines_languages.json
This commit is contained in:
parent
9b6ffed061
commit
d6681fd33b
|
@ -106,6 +106,6 @@ def _fetch_supported_languages(resp):
|
||||||
articles = int(td[4].xpath('./a/b')[0].text.replace(',', ''))
|
articles = int(td[4].xpath('./a/b')[0].text.replace(',', ''))
|
||||||
# exclude languages with too few articles
|
# exclude languages with too few articles
|
||||||
if articles >= 100:
|
if articles >= 100:
|
||||||
supported_languages[code] = {"name": name, "english_name": english_name, "articles": articles}
|
supported_languages[code] = {"name": name, "english_name": english_name}
|
||||||
|
|
||||||
return supported_languages
|
return supported_languages
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
# This script generates languages.py from intersecting each engine's supported languages.
|
# This script generates languages.py from intersecting each engine's supported languages.
|
||||||
#
|
#
|
||||||
# Output files (engines_languages.json and languages.py)
|
# Output files: searx/data/engines_languages.json and searx/languages.py
|
||||||
# are written in current directory to avoid overwriting in case something goes wrong.
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
Loading…
Reference in New Issue