This project identifies the top GitHub contributors based on their location and contribution metrics.
- Node.js (v14.x or later)
- npm (Node Package Manager)
- A GitHub Personal Access Token with
public_repo
scope
-
Clone the repository
git clone https://github.com/jeffryhawchab/committers-fetch.git cd committers-fetch
-
Install dependencies
Install the required Node.js packages using npm:
npm install
-
Configure your GitHub Personal Access Token
Open
script.js
and replace the empty string for theTOKEN
variable with your GitHub Personal Access Token:const TOKEN = 'your_personal_access_token';
To run the script and get the top GitHub contributors for a specific location:
-
Open
script.js
and modify thelocation
variable with your desired location:getUsersByLocation('desired_location');
-
Run the script:
node script.js
getUsersByLocation(location)
: Fetches GitHub users based on their location, retrieves detailed information and contributions, and then outputs the top contributors.
- Make sure your GitHub token has the necessary permissions to access user and repo data.
- The script uses the GitHub Search API and User Repos API to gather data.
This project is licensed under the MIT License. See the LICENSE file for details.