[python] Added fr, de langs for descriptions.

This commit is contained in:
Maksim Andrianov 2019-08-30 15:35:49 +03:00 committed by Aleksey Belousov
parent 015f1ac282
commit 616857619f
2 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,9 @@ HEADERS = {f"h{x}" for x in range(1,7)}
BAD_SECTIONS = {
"en": ["External links", "Sources", "See also", "Bibliography", "Further reading", "References"],
"ru": ["Литература", "Ссылки", "См. также", "Библиография", "Примечания"],
"es": ["Vínculos de interés", "Véase también", "Enlaces externos", "Referencias"]
"es": ["Vínculos de interés", "Véase también", "Enlaces externos", "Referencias"],
"fr": ["Bibliographie", "Lien externe", "Voir aussi", "Liens externes", "Références", "Notes et références"],
"de": ["Einzelnachweise", "Weblinks", "Literatur", "Siehe auch", "Anmerkungen"]
}

View file

@ -194,7 +194,7 @@ def stage_descriptions(env):
dump_wikipedia_urls=env.wiki_url_path,
idToWikidata=env.id_to_wikidata_path)
langs = ("en", "ru", "es")
langs = ("en", "ru", "es", "fr", "de")
checker = check_and_get_checker(env.popularity_path)
download_from_wikipedia_tags(env.wiki_url_path, env.descriptions_path,
langs, checker)