Skip to content

Instantly share code, notes, and snippets.

@ksator
Created July 21, 2021 00:20
Show Gist options
  • Save ksator/fce34ca0c7a10589b2663b232ecdbc6a to your computer and use it in GitHub Desktop.
Save ksator/fce34ca0c7a10589b2663b232ecdbc6a to your computer and use it in GitHub Desktop.
list all repositories
import requests
from jinja2 import Template
url = "https://api.github.com/users/ksator/repos?per_page=100&sort=pushed"
projects = requests.get(url)
if projects.status_code == 200:
for project in projects.json():
print(project['name'])
print(project['html_url'])
print(project['description'])
print(project['pushed_at'])
print('*********')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment