This repository contains a Python script that can be used to sort repositories based on whether they are Solana based, Multichain, None of these or Private. It was created as a part of research for Electric Capital Developer Report 2022 and is currently being used for Solana Foundation's Monthly Developer Reports
To run the script, follow these steps:
- Install the required packages by running
pip install -r requirements.txt. - Get the entire repositories CSV with repo URLs and name it
input.csv. - Run
get_repo_urls.pyto generate a newrepos.csvfile. This new file will only contain the repo's URLs, and it will remove any other data from the originalinput.csv. - Obtain a GitHub personal token and a Google service account credential JSON file. Name the JSON file
cred.json. - Add the GitHub personal token to the
.envfile. - Open
main.pyand modify the parameter variables as needed for your research. - Finally, run
main.py.
That's it! The script will sort the repositories according to the parameters you set, and the results will be saved to a new CSV file named output.csv.