This script will pull X pages from the results of package dependents and sort them by number of stars on GH. They seem to be sorted by recent change by default, but there is no way to sort them by stars.
git clone https://github.com/dteiml/github-by-stars && \
cd github-by-stars && \
npm i
Go to https://github.com. Open Network tab in dev tools. Refresh page and click on first request. Copy the Request headers
to your clipboard.
Create a .env
file and paste the headers. They should should something like this:
Host = github.com
Connection = keep-alive
...
That's it!
npx nodemon index.js
Everything can be customized from the terminal:
--author
- either user or organization account name--name
- package name--begin
- which page we should begin at. The pages are unfortunately in a linked list, so if you want to get pageX
, you must have in the past gotten pageX-1
. So for first run the only value this can be is 0.--end
- end at which page (excluding this one). Results are 30 per page.
So example usage would be node index.js --author facebook --name react --begin 0 --end 100
- Error handling
- Fix selectors if they stop working
Top 10:
- ghostery/ghostery-extension
- javieraviles/node-typescript-koa-rest
- Accenture/reactive-interaction-gateway
- spring-io/start.spring.io
- elastic/docs
- ghiscoding/Angular-Slickgrid
- wuyawei/fe-code
- mhnpd/react-loader-spinner
- botfront/botfront
- retyui/react-native-confirmation-code-field