{"id":22166540,"url":"https://github.com/alextanhongpin/github-scraper","last_synced_at":"2026-04-12T21:49:57.515Z","repository":{"id":79114886,"uuid":"109600476","full_name":"alextanhongpin/github-scraper","owner":"alextanhongpin","description":"Scrapes Github User's data from Malaysia for data mining and analytics purpose","archived":false,"fork":false,"pushed_at":"2018-05-27T12:19:42.000Z","size":340,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T21:54:20.426Z","etag":null,"topics":["babel","github","nedb","nodejs","onion-architecture","scraper","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alextanhongpin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-05T17:28:09.000Z","updated_at":"2022-03-17T02:41:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"b90972aa-9abc-4cae-9795-cd47d95b424e","html_url":"https://github.com/alextanhongpin/github-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fgithub-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fgithub-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fgithub-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fgithub-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alextanhongpin","download_url":"https://codeload.github.com/alextanhongpin/github-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245307390,"owners_count":20594062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","github","nedb","nodejs","onion-architecture","scraper","typescript"],"created_at":"2024-12-02T05:19:50.636Z","updated_at":"2026-04-12T21:49:52.455Z","avatar_url":"https://github.com/alextanhongpin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-scraper\n\nScrapes public repos based on a particular keyword or location.\n\n## Issues\n\n```bash\n{\"message\":\"Only the first 1000 search results are available\",\"documentation_url\":\"https://developer.github.com/v3/search/\"}\n```\n\n## Installation\n\nFirst, you have to install [Yarn](https://yarnpkg.com/lang/en/docs/install/). Then:\n\n```bash\n# This will install all dependencies from package.json\n$ yarn install\n\n# We use foreman to load the environment variables from `.env` file.\n# This is important to prevent accidental commit of sensitive data to github\n$ yarn global add foreman\n```\n\n## Add/Remove packages\n\n```bash\n$ yarn add \u003cPACKAGE_NAME\u003e\n$ yarn add --dev \u003cPACKAGE_NAME\u003e\n$ yarn remove \u003cPACKAGE_NAME\u003e\n```\n\n## Environment\n\nFor development, store all the environment variable in the `.env` file. This will be included in `.gitignore` so that it will not be commited to github.\nMake sure you create the `.env` file or the service will not run.\n\nThe `.env` should contain the following:\n\n```bash\n# Create a personal access token from Github.\n# It should contain the minimum scope repo::public_repo and user::read:user\nACCESS_TOKEN=\u003cYOUR_GITHUB_ACCESS_TOKEN\u003e\n```\n\n## Start\n\n```bash\n# If you do not have `foreman` installed globally\n$ yarn global add foreman\n\n# or\n$ npm i -g foreman\n\n# Start\n$ nf start\n```\n\n## API Calls\n\n### Analytics Endpoint\n\n`GET /analytics?type=\u003cTYPE\u003e`:\n\n- user_count\n- user_count_by_years\n- repo_count\n- leaderboard_last_updated_repos\n- leaderboard_most_stars_repos\n- leaderboard_most_watchers_repos\n- leaderboard_most_repos\n- leaderboard_most_repos_by_language\n- leaderboard_languages\n\n`GET /analytics/profiles?login=\u003cGITHUB_LOGIN_NAME\u003e`\n\n### Users Endpoint\n\n`GET /users/\u003cGITHUB_LOGIN_NAME\u003e`\n\n### Repos Endpoint\n\n`GET /repos/\u003cGITHUB_LOGIN_NAME\u003e`\n\n## TODO\n\n- [ ] ensure only unique repos for a particular user are added (no duplications)\n- [ ] check for language-agnostic storage solution\n\n\u003c!-- // Getting top 10 users\ndb.users.find({}).sort({\n  public_repos: -1\n}).limit(10).exec((error: Error, docs: any) =\u003e {\n  console.log('top10 users', docs)\n}) --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fgithub-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextanhongpin%2Fgithub-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fgithub-scraper/lists"}