From ed92a7cf57167e4ce859235c29517bb301f8a606 Mon Sep 17 00:00:00 2001 From: Soxoj Date: Sun, 17 May 2026 18:46:09 +0200 Subject: [PATCH 1/2] Fix scraping for GitHub's new Primer-React profile shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub now serves a new profile shell to authenticated viewers that broke three scraping paths in gitfive: - repos.py: the navigation tab counter moved from `` to `` with the number nested in text. `gitfive user ` raised `ValueError: Could not find the repositories counter on the page.` Extract the count via a helper that handles both layouts. - utils.py: `get_commits_count` matched the commits link via `…/commits/$`, but the new shell renders it with a trailing slash. The Metamon post-push polling loop spun forever as a result. Allow an optional trailing slash and harden number extraction. - commits.py: the `/commits/` page no longer uses `li.js-commits-list-item` / `a.js-navigation-open` / `img.avatar-user`. Parse the embedded `