BoboTiG / ebook-reader-dict

Finally decent dictionaries based on the Wiktionary for your beloved eBook reader. Daily updates & 14 languages supported so far.
http://www.tiger-222.fr/?d=2020/04/17/22/14/21-un-dictionnaire-alternatif-et-complet-pour-votre-liseuse
MIT License
418 stars 24 forks source link

[ES] "es-campos-semanticos" script error #2140

Closed BoboTiG closed 2 months ago

BoboTiG commented 2 months ago
Traceback (most recent call last):
  File "scripts/es-campos-semanticos.py", line 52, in <module>
    next_page_url = process_cs_page(next_page_url, results)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "scripts/es-campos-semanticos.py", line 27, in process_cs_page
    last_link = nextpage_div.find_all("a")[-1]
                ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find_all'
BoboTiG commented 2 months ago

:thinking: https://es.wiktionary.org/wiki/Categor%C3%ADa:Plantillas_de_campo_sem%C3%A1ntico is now empty, that explains why.

BoboTiG commented 2 months ago

It seems to have moved to https://es.wiktionary.org/wiki/M%C3%B3dulo:auto_cat/campos_sem%C3%A1nticos.

lasconic commented 2 months ago

Yes, looks like it. Also see https://es.wiktionary.org/wiki/Wikcionario:Lista_de_etiquetas

BoboTiG commented 2 months ago

Yes, looks like it. Also see https://es.wiktionary.org/wiki/Wikcionario:Lista_de_etiquetas

We can use the data directly: https://es.wiktionary.org/wiki/M%C3%B3dulo:contexto/csem