summaryrefslogtreecommitdiff
path: root/shell/github-get-starred.sh
blob: 4623986794900e5b60bf6b2ba7f2267ba3713a4c (plain)
1
2
3
4
5
6
7
#!/bin/bash

USER=${1:-pks}

for PAGE in {0..9}; do
  curl -sH "Accept: application/vnd.github.v3.star+json" "https://api.github.com/users/$USER/starred?per_page=100&page=$PAGE"|jq -r '.[]|[.starred_at,.repo.full_name]|@tsv'
done