Add a scraper check utility
Los mantenedores suelen responder en 1 día
@pawank925 ya está trabajando en esto.
Desde el 19/10/2026.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
No se nombran archivos, pruebas ni puntos de entrada. Empieza por identificar los objetos de scraperlib que crean ZIMs, vuelven a codificar assets y usan la caché de optimización; después, revisa cómo se gestionan los archivos temporales. Se considerará terminado cuando se haya definido un mecanismo de comprobación de coherencia automatizado o invocado explícitamente, así como el comportamiento ante fallos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Currently, we rely on various objects in scraperlib to:
- create the ZIM
- re-encode videos and images
- cache these assets on the optimization cache
We might consider to have a mechanism to perform sanity checks on scraper behavior:
- did we cached all re-encoded images / videos when a cache is present?
- did we removed temporary files from the filesystem as they are added to the ZIM? (we know that while we prefer in-memory/streaming approaches, there are still many scrapers which are using the temporary file approach, and even some situation which have to rely on it)
What I do not yet know:
- should we make the scraper fails if these checks fails?
- is there any chance we automate these checks? (i.e. no need to modify the scrapers, or as little as possible - at least not make a call to "check_i_m_ok" mandatory, because the scraper developers might forget about it as well ; I doubt about this because there are many kind of situations)
- can we do these checks early? (so that we fail the scraper asap instead of wasting time and resources)
- Lenguaje dominante
- Python
- Estrellas
- 33
- Forks
- 36
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 19
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de openzim/python-scraperlib
-
handle_user_provided_file leaves an empty temp filePosiblemente ocupada @kevincommits la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
openzim/python-scraperlib#414 ·
Los mantenedores suelen responder en 1 día
-
HtmlRewriter: title is cut at the first `&` (entity or bare ampersand)Posiblemente ocupada @rajanpanth la tomó hace 23 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
openzim/python-scraperlib#401 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[next major] Remove deprecated 'convert' parameter for optimize_image function inside optimization.pyPosiblemente ocupada @Sriram-Nambiar la tomó hace 51 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
openzim/python-scraperlib#292 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Deduplicator: xxh32 digest can collide on large ZIMsPosiblemente ocupada @i-varunsharma la tomó hace 1 día. Abierto
openzim/python-scraperlib#426 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Metadata accepts empty BytesIO/file values although empty is not allowedPosiblemente ocupada @playlikeboy la tomó hace 1 día. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 25/100
openzim/python-scraperlib#422 ·
Los mantenedores suelen responder en 1 día
Todos los issues de openzim/python-scraperlib
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día