The repository electric-capital/crypto-ecosystems gathers data about open source projects in the crypto ecosystem. This program helps us update this dataset by automating some parts of it.
- curl GitHub API to pass the response to our program (using the organization
Stride-Labs
as example)
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR_GITHUB_TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/Stride-Labs/repos\?direction\=desc\&per_page\=100
| ./crypto-ecosystems-updater
- API call to GitHub to get JSON response (using the organization
Stride-Labs
as example)
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR_GITHUB_TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/Stride-Labs/repos\?direction\=desc\&per_page\=100
- Convert JSON to TOML
./crypto-ecosystems-updater <path_to_json_file>