github_raw_url

github_raw_url(path, ref='main', repo=None)

Build a stable raw.githubusercontent.com URL for a GitHub repository.

If a full HTTP(S) URL is supplied, it is returned unchanged after stripping any query string; GitHub blob URLs are rewritten to raw URLs automatically.

Back to top