Git Product home page Git Product logo

github-by-stars's People

Contributors

hacker-dom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

github-by-stars's Issues

UnhandledPromiseRejectionWarning: RequestError: Error: options.uri is a required argument

github-by-stars $ node index.js --author aws-cloudformation --name cfn-python-lint
Waiting 5 s
Fetching: https://github.com/aws-cloudformation/cfn-python-lint/network/dependents
Writing dataset/cfn-python-lint/0.html
[...]
Waiting 5 s
Fetching: https://github.com/aws-cloudformation/cfn-python-lint/network/dependents?dependents_after=NDI0MDQ4MjUyMw
Writing dataset/cfn-python-lint/6.html
Waiting 5 s
Fetching
(node:73150) UnhandledPromiseRejectionWarning: RequestError: Error: options.uri is a required argument
    at new RequestError (github-by-stars/node_modules/request-promise-core/lib/errors.js:14:15)
    at Request.plumbing.callback (github-by-stars/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (github-by-stars/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (github-by-stars/node_modules/request/request.js:185:22)
    at Request.emit (events.js:203:13)
    at Request.EventEmitter.emit (domain.js:476:20)
    at Request.init (github-by-stars/node_modules/request/request.js:231:17)
    at Request.RP$initInterceptor [as init] (github-by-stars/node_modules/request-promise-core/configure/request2.js:45:29)
    at new Request (github-by-stars/node_modules/request/request.js:127:8)
    at request (github-by-stars/node_modules/request/index.js:53:10)
    at github-by-stars/src/getHtmls.js:15:23
(node:73150) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:73150) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Mishandling repositories with commas in star count

github-by-stars $ node index.js --author aws-cloudformation --name cfn-python-lint --begin 0 --end 7
  {
    repoUrl: 'https://github.com/mozilla-services/socorro',
    stars: 464,
    forks: 207
  },
  {
    repoUrl: 'https://github.com/aws-quickstart/taskcat',
    stars: 436,
    forks: 84
  },
  {
    repoUrl: 'https://github.com/Yelp/Tron',
    stars: 308,
    forks: 52
  },
  {
    repoUrl: 'https://github.com/nucypher/nucypher',
    stars: 231,
    forks: 82
  },
  {
    repoUrl: 'https://github.com/jpetrucciani/bucketstore',
    stars: 198,
    forks: 11
  },
  {
    repoUrl: 'https://github.com/Crystalnix/omaha-server',
    stars: 139,
    forks: 60
  },
  {
    repoUrl: 'https://github.com/HearthSim/HSReplay.net',
    stars: 123,
    forks: 14
  },
  {
    repoUrl: 'https://github.com/harvard-lil/capstone',
    stars: 84,
    forks: 17
  }
  ...

Missing:

  {
    repoUrl: 'https://github.com/zulip/zulip',
    stars: 10,298,
    forks: 3,098
  },
  {
    repoUrl: 'https://github.com/awslabs/serverless-application-model',
    stars: 5,697,
    forks: 1,375
  }
  ...

https://github.com/dteiml/github-by-stars/blob/f34753e40ab573ac4764d299010e44c953176c82/src/sort.js#L18

Hard-coded to your home directory

This breaks due to the dataset location being hard-coded to your home directory in src/{getHtmls,sort}.js. Updating those paths to an existing dir on my machine allows the tool to run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.