Skip to content

Commit

Permalink
feat: add script for generating most popular repos
Browse files Browse the repository at this point in the history
  • Loading branch information
pajecawav committed Feb 10, 2024
1 parent 05498e8 commit 11780e0
Show file tree
Hide file tree
Showing 2 changed files with 1,441 additions and 1,337 deletions.
12 changes: 12 additions & 0 deletions scripts/generate-repos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh

load () {
today=$(date +%F)
curl https://raw.githubusercontent.com/EvanLi/Github-Ranking/master/Data/github-ranking-$today.csv
}

query () {
sqlite3 :memory: -cmd ".mode csv" -cmd ".import /dev/stdin repos" "select username || '/' || repo_name from repos;"
}

load | query | sort -u > scripts/repos.txt
Loading

0 comments on commit 11780e0

Please sign in to comment.