This is some Python code to query a GitHub user’s starred repositories and their topics.
conda env create
conda activate stars # To get a shell in the conda environment.
pipenv install
pipenv shell # To get a shell in the Python virtual environment.
If you want to install development dependencies to support static analysis
(style checking and static type checking), run pipenv install -d
instead of
(or in addition to) pipenv install
.
Open the notebook stars.ipynb
. I suggest VS Code, which I
used, but you can also use Jupyter Lab or any other application that supports
Jupyter notebooks.
Most of the program logic is in stars.py
.
Data are cached and reused in files named
starred-repos-username.json
in the current directory. These
caches never expire, but you can delete them. One such cache,
starred-repos-EliahKagan.json
, is included
in this repository.