research-software-directory / research-software-directory

The Research Software Directory is a content management system that is tailored to software.
https://research-software.nl
Apache License 2.0
46 stars 22 forks source link

automate retrieval of languages based on the GitHub repository URLs #218

Open jspaaks opened 5 years ago

jspaaks commented 5 years ago

GitHub:

curl https://api.github.com/repos/research-software-directory/research-software-directory/languages
{
  "HTML": 90552,
  "Python": 86817,
  "TypeScript": 68539,
  "JavaScript": 46952,
  "CSS": 46906,
  "Vue": 17308,
  "Dockerfile": 2894,
  "Shell": 1159
}

GitLab:

curl "https://gitlab.com/api/v4/projects/inkscape%2Finkscape/languages"
{
    "C++": 93.04,
    "NSIS": 1.63,
    "C": 1.59,
    "HTML": 1.35,
    "CMake": 1.02,
    "Python": 0.67,
    "Shell": 0.18,
    "Perl": 0.15,
    "JavaScript": 0.14,
    "XSLT": 0.11,
    "CSS": 0.05,
    "Scheme": 0.03,
    "POV-Ray SDL": 0.03,
    "Batchfile": 0.01,
    "Scilab": 0.0
}

We could make a task harvest languages in /harvesting.

jspaaks commented 3 years ago

For better findability, I'm adding the word linguist here.