Add a scraper check utility
メンテナーはふだん 1 日以内に返信
@pawank925 がすでに取り組んでいます。
2026年10月19日 から。
評価
調査の方向性
ファイル、テスト、エントリーポイントは指定されていません。まず、ZIMs を作成し、アセットを再エンコードし、最適化キャッシュを使用する scraperlib オブジェクトを整理し、次に一時ファイルの扱いを確認してください。自動的に実行される、または明示的に呼び出されるサニティチェックの仕組みと、失敗時の動作が定義されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- Python
- スター
- 33
- フォーク
- 36
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 19
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openzim/python-scraperlib のほかの issue
-
handle_user_provided_file leaves an empty temp file対応中かも @kevincommits が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
openzim/python-scraperlib#414 ·
メンテナーはふだん 1 日以内に返信
-
HtmlRewriter: title is cut at the first `&` (entity or bare ampersand)対応中かも @rajanpanth が 23 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
openzim/python-scraperlib#401 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[next major] Remove deprecated 'convert' parameter for optimize_image function inside optimization.py対応中かも @Sriram-Nambiar が 51 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openzim/python-scraperlib#292 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Deduplicator: xxh32 digest can collide on large ZIMs対応中かも @i-varunsharma が 1 日前に担当しました。 オープン
openzim/python-scraperlib#426 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Metadata accepts empty BytesIO/file values although empty is not allowed対応中かも @playlikeboy が 1 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 25/100
openzim/python-scraperlib#422 ·
メンテナーはふだん 1 日以内に返信
openzim/python-scraperlib の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信