Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Get the language most used by an user #168

Open
iblancasa opened this issue Dec 10, 2017 · 0 comments
Open

Get the language most used by an user #168

iblancasa opened this issue Dec 10, 2017 · 0 comments

Comments

@iblancasa
Copy link
Owner

GitHub used to provide "the most used language" by an user in the user profile. When GitHub changed the UI, this information was removed.

The API provides with this information:

    {
      "login": "Koltharius",
      "id": 7522784,
      "avatar_url": "https://avatars0.githubusercontent.com/u/7522784?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Koltharius",
      "html_url": "https://github.com/Koltharius",
      "followers_url": "https://api.github.com/users/Koltharius/followers",
      "following_url": "https://api.github.com/users/Koltharius/following{/other_user}",
      "gists_url": "https://api.github.com/users/Koltharius/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Koltharius/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Koltharius/subscriptions",
      "organizations_url": "https://api.github.com/users/Koltharius/orgs",
      "repos_url": "https://api.github.com/users/Koltharius/repos",
      "events_url": "https://api.github.com/users/Koltharius/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Koltharius/received_events",
      "type": "User",
      "site_admin": false,
      "score": 1.0
    }

How can we get this information? The API allows to search user by location and programming language. For instance: https://api.github.com/search/users?q=location:Granada+language:python

One possible solution could be to query all the programming languages in the location.

This could be a problem: for the worst case, the number of queries to the API would be multiplied by 465 (the number of languages in GitHub).

@iblancasa iblancasa self-assigned this Dec 10, 2017
@iblancasa iblancasa changed the title Get the language most user by an user Get the language most used by an user Dec 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant