Skip to content

adrunkhuman/90minuTUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

90minuTUI

90minuTUI screenshot

Small Go TUI for browsing 90minut.pl.

It is read-only. It fetches public HTML, decodes it, parses it into typed models, and renders a terminal view for seasons, competitions, fixtures, tables, and match details.

Run

go run ./cmd/90minutui

Controls

  • j/k move selection; in match view, previous/next fixture
  • h/l previous/next round
  • enter open selected season, competition, league, or match
  • esc close match view, back out of submenus, or toggle the selector
  • tab switch selector focus
  • pgup/pgdn, ctrl+u/ctrl+d scroll match details
  • r reload
  • q quit

What Works

  • Season and competition selection from archsezon.php
  • League tables and round fixtures
  • Competition submenus for III liga, regional leagues/cups, women, and futsal
  • Linkless fixtures that have scores but no match page
  • Match score, timeline, metadata, lineups, substitutions, and cards

Planned

  • CLI/query API for scripts and non-interactive use

Boundaries

  • cmd/90minutui: program entrypoint
  • internal/site: fetch, charset decode, parse, classify, normalize
  • internal/ui: Bubble Tea state and presentation from site models

Pipeline: fetch/decode -> parse/classify -> render/present.

Keep source-shape logic in internal/site. UI code may derive display state from typed models, but should not parse raw HTML.

Parser Notes

  • 90minut may use iso-8859-2; decode before parsing.
  • Prefer semantic selectors and stable URLs/IDs over table offsets.
  • Parser tests use saved HTML fixtures under internal/site/testdata.
  • Add or refresh fixtures when upstream HTML changes.
go run ./cmd/fetchfixtures
go test ./...

Checks

go test ./...
go vet ./...

Optional local hooks:

prek install
prek run -a

About

TUI browser/parser for 90minut.pl

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages