Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

registry that crawls github users, used inhttp://component.github.io

NotificationsYou must be signed in to change notification settings

componentjs/crawler.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http://component-crawler.herokuapp.com/

Crawl github users for components. Only works with Chrome right now due to a lack of vendor prefixing.

Some notes:

  • It skipscomponent.jsons withprivate: true.
  • It skips repositories with issues disabled.
  • It tries to skip bare repositories, but sometimes fails.
  • The.version could be wrong if not updated correctly (the crawler only checksmaster).
  • GitHub data is added as.github to eachcomponent.json.
  • Watcher counts are not included because GitHub's search API does not include that field.

API

GET /.json

Returns an object:

  • users - an object of all the users crawled.
  • components - array ofcomponent.jsons.

GET /log

Return an event source stream of updates.

GET /:user

Return all a user's components.

PATCH /:user

Update all the components of a user.

GET /:user/:repo

Return a repo'scomponent.json.

Development

Setup

  • create an AWSS3 bucket in theUS Standard region
  • create an AWSIAM user
    • copy the ACCESS KEY and the SECRET
    • apply theAmazonS3FullAccess policy to the user
  • run these commands in your terminal:
export S3_KEY='<YOUR_KEY>'export S3_SECRET='<YOUR_SECRET>'export S3_BUCKET='<YOUR_BUCKET_NAME>'

Test

npm test

Start the app

npm start then openlocalhost:3000 in your browser.At thelocalhost:3000/ you can type in a github username or organisation at the bottom andafter a while you can see the result atlocalhost:3000/.json

License

The MIT License (MIT)

Copyright (c) 2014 Jonathan Ongme@jongleberry.com

Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.

About

registry that crawls github users, used inhttp://component.github.io

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp