feature: add Bambu Lab firmware extractor #50

Merged
Claude merged 1 commits from feature/bambulab-extractor into main 2026-02-15 20:23:53 +00:00
Collaborator

Summary

  • Adds sites/bambulab package that extracts firmware information from Bambu Lab's firmware download pages
  • Parses the __NEXT_DATA__ JSON blob embedded in the page for reliable extraction across all printer models
  • Provides GetLatestFirmware() and GetAllFirmware() methods returning version, release date, release notes, download URL, and MD5 checksum
  • Supports all printer models: X1, P1, A1, A1 mini, H2D, H2S, P2S, X1E, H2D Pro

Closes #45
Parent: #31

Test plan

  • Unit tests with mock browser covering all extraction logic
  • Tests for GetLatestFirmware, GetAllFirmware, convenience functions
  • Error cases: unknown model, missing NEXT_DATA
  • Helper function tests (URL generation, date formatting)
  • Full test suite passes (go test ./...)

🤖 Generated with Claude Code

## Summary - Adds `sites/bambulab` package that extracts firmware information from Bambu Lab's firmware download pages - Parses the `__NEXT_DATA__` JSON blob embedded in the page for reliable extraction across all printer models - Provides `GetLatestFirmware()` and `GetAllFirmware()` methods returning version, release date, release notes, download URL, and MD5 checksum - Supports all printer models: X1, P1, A1, A1 mini, H2D, H2S, P2S, X1E, H2D Pro Closes #45 **Parent:** #31 ## Test plan - [x] Unit tests with mock browser covering all extraction logic - [x] Tests for GetLatestFirmware, GetAllFirmware, convenience functions - [x] Error cases: unknown model, missing __NEXT_DATA__ - [x] Helper function tests (URL generation, date formatting) - [x] Full test suite passes (`go test ./...`) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-02-15 20:21:48 +00:00
feature: add Bambu Lab firmware version extractor
All checks were successful
CI / build (pull_request) Successful in 30s
CI / vet (pull_request) Successful in 48s
CI / test (pull_request) Successful in 49s
df934a0521
Extract firmware information from Bambu Lab's firmware download pages
by parsing the __NEXT_DATA__ JSON blob embedded in the page. Supports
all printer models (X1, P1, A1, A1 mini, H2D, H2S, P2S, X1E, H2D Pro).

Provides GetLatestFirmware() and GetAllFirmware() methods that return
version, release date, release notes, download URL, and MD5 checksum.

Closes #45

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude merged commit 4f8b6fb024 into main 2026-02-15 20:23:53 +00:00
Sign in to join this conversation.