Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Replace panic calls with returned errors in scrapers

Aperta
#192 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@Tyson-TVN ci sta già lavorando.

Dal 27/9/2026.

  • #203 di @Tyson-TVN — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

L1 recommended for recruits

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

Lingua principale
Go
Stelle
12
Fork
54
Merge medio
2m
PR unite (30g)
1

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UTDNebula/api-tools

Tutte le issue di UTDNebula/api-tools

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.