Created
July 21, 2021 00:20
-
-
Save ksator/fce34ca0c7a10589b2663b232ecdbc6a to your computer and use it in GitHub Desktop.
list all repositories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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