Skip to content

Replace panic calls with returned errors in scrapers #192

Open

Description

@Yogeb-tech

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

Activity

  1. self-assigned this
    on Sep 18, 2026
  2. self-assigned this
    on Sep 27, 2026
  3. added a commit that references this issue on Sep 27, 2026
    b22c4ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

L1A task suitable for someone who is comfortable helping with basic issues.recommended for recruits

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions