webscraper-github-user

Exibe stars e following de qualquer perfil público do GitHub, direto no terminal.

Python 3.8+ Zero dependências AGPL-3.0 Web Scraping CLI

O que faz

Dado um nome de usuário do GitHub, o script exibe em sequência:

  • ★ Stars: todos os repositórios favoritados como estrelas, com nome e descrição
  • ● Following: todos os usuários que o perfil segue, com link direto
  • Resumo final: contagem consolidada de stars e following

Funciona para qualquer perfil público do GitHub. Suporta paginação automática, não importa quantas páginas existam, o script percorre todas sem intervenção.

Exemplo de saída

bash
$ python WebScraper-GitHub-User.py torvalds

────────────────────────────────────────────────────────────
  ⬡  webscraper-github-user
  Target → github.com/torvalds
────────────────────────────────────────────────────────────

  ★  Starred repositories: torvalds
  ··················································
     1.  torvalds/linux
         The Linux kernel
     2.  git/git
         Fast, scalable, distributed revision control system
    ...

    ✔  Total starred repositories: 42

  ★  Following: torvalds
  ··················································
     1.  gregkh  https://github.com/gregkh
     2.  davem330  https://github.com/davem330
    ...

    ✔  Total following: 7

────────────────────────────────────────────────────────────
  Summary for torvalds
    Stars     : 42
    Following : 7
────────────────────────────────────────────────────────────

Uso

O nome de usuário é recebido como primeiro argumento. O prefixo @ é opcional.

python WebScraper-GitHub-User.py torvalds
python WebScraper-GitHub-User.py @VictorGabriel7Dev

Instalação

Sem pip install. Usa apenas a biblioteca padrão do Python.

git clone https://github.com/VictorGabriel7Dev/webscraper-github-user.git
cd webscraper-github-user
python WebScraper-GitHub-User.py torvalds
Requer Python 3.8+. Sem dependências externas, urllib, re, html e sys da stdlib.

Como funciona

O script acessa diretamente as páginas HTML públicas do GitHub (sem autenticação) e extrai os dados via expressões regulares, do mesmo modo que um navegador faria.

Observações

O script lê apenas páginas públicas. Perfis privados ou listas restritas não são acessíveis sem autenticação.
  • Os resultados refletem o estado das páginas no momento da execução.
  • Nenhum dado é armazenado, enviado ou cacheado.
English

What it does

Given a GitHub username, the script displays in sequence:

  • ★ Stars: all starred repositories, with name and description
  • ● Following: all users the profile follows, with direct link
  • Final summary: consolidated count of stars and following

Works for any public GitHub profile. Supports automatic pagination, no matter how many pages, the script traverses all of them without intervention.

Output example

bash
$ python WebScraper-GitHub-User.py torvalds

────────────────────────────────────────────────────────────
  ⬡  webscraper-github-user
  Target → github.com/torvalds
────────────────────────────────────────────────────────────

  ★  Starred repositories: torvalds
  ··················································
     1.  torvalds/linux
         The Linux kernel
     2.  git/git
         Fast, scalable, distributed revision control system
    ...

    ✔  Total starred repositories: 42

  ★  Following: torvalds
  ··················································
     1.  gregkh  https://github.com/gregkh
     2.  davem330  https://github.com/davem330
    ...

    ✔  Total following: 7

────────────────────────────────────────────────────────────
  Summary for torvalds
    Stars     : 42
    Following : 7
────────────────────────────────────────────────────────────

Usage

The username is received as the first argument. The @ prefix is optional.

python WebScraper-GitHub-User.py torvalds
python WebScraper-GitHub-User.py @VictorGabriel7Dev

Installation

No pip install needed. Uses only the Python standard library.

git clone https://github.com/VictorGabriel7Dev/webscraper-github-user.git
cd webscraper-github-user
python WebScraper-GitHub-User.py torvalds
Requires Python 3.8+. No external dependencies, urllib, re, html and sys from stdlib.

How it works

The script fetches GitHub's public HTML pages directly (no authentication) and extracts data using regular expressions, the same way a browser would.

Notes

The script only reads public pages. Private profiles or restricted lists are not accessible without authentication.
  • Results reflect the page state at the time of execution.
  • No data is stored, sent or cached.