Replace panic calls with returned errors in scrapers
評価
この issue はまだ評価されていません。
説明
Overview
Every scraper in the scrapers folder calls panic(err) when something goes wrong. This crashes the whole process and stops the scrape. Some scrapers run for a long time. For example, astra.go scrapes a full year of dates, and coursebook.go walks through every course prefix. If one HTTP request fails in the middle of a run, all the progress so far is lost.
Change the scrapers so that instead of calling panic(err), they return the error to the caller. Start with the smaller scraper files, for example scrapers/discounts.go and scrapers/map.go, then move to the larger ones. Do not change what the scrapers do, only how they report failures.
Some scrapers already use log.Fatal and log.Panic in a few places. Treat those the same way and return errors instead.
Resources
- 主要言語
- Go
- スター
- 12
- フォーク
- 54
- 平均マージ
- 2分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
UTDNebula/api-tools のほかの issue
-
Improve unit tests in sectionParser_test.go対応中かも @Sidd-Pelluru が 20 日前に担当しました。 オープンL1 recommended for recruits
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
Improve unit tests in discountsParser_test.go対応中かも @LikithInam が 6 日前に担当しました。 オープンL1 recommended for recruits
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
L1 recommended for recruits
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
L1 Type: Bug Report
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
Improve output in events.go対応中かも @DennisOrtin が 10 日前に担当しました。 オープンL1 recommended for recruits
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
UTDNebula/api-tools の issue をすべて見る
似ている issue
-
component/server severity/minor type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
diagnose globalnet reports a failure for every exported headless Service対応中かも @kurtyoon が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
submariner-io/subctl#1948 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
Upgrade to Go 1.27.1オープンhelp wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
meshery-extensions/meshery-mcp-server#63 · コメント 1 件 ·
-
Upgrade to Go 1.27.1オープンhelp wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100