Skip to content

nuwen/github-avatar-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Avatar Downloader

Problem Statement

Given a GitHub repository name and owner, download all the contributors' profile images and save them to a subdirectory, avatars/.

Expected Usage

This program should be executed from the command line, in the following manner:

node download_avatars.js jquery jquery

... (whatever else you'd like to include)

Dependencies

  • Request

Considerations

request from https://USERNAME:[email protected]/repos/REPOOWNER/REPONAME/contributors

Github Token Used: 9ed0a3253cdee659cb7e3ece6134bed8dc76b0a8

Github API Access requires a USER-AGENT in the headers when making a request, example below:

var options = {
  url: 'https://' + GITHUB_USER + ':' + GITHUB_TOKEN + '@api.github.com/repos/' + repoOwner + '/' + repoName + '/contributors',
  headers: {
    'User-Agent': 'GitHub Avatar Downloader - Student Project'
  }
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published