Code Monkey home page Code Monkey logo

Comments (7)

WestleyArgentum avatar WestleyArgentum commented on July 1, 2024

That's weird, I'm able to get full lists for both contributors and stargazers:

julia> stargazers("julialang", "julia", auth = a)
5107-element Array{User,1}:
 User - brixen
 User - daksis
 User - willcodeforfoo
 User - lancecarlson
 User - DocSavage
 User - brapse
 User - vic
 User - sbusso
 User - raggi
 User - methodmissing
 User - brainopia
 User - jarkko
 User - auser
 User - jarib
 ⋮
 User - paegun
 User - usptact
 User - markdjthomas
 User - zhengxwen
 User - tpapp
 User - hellerve
 User - 315234
 User - SimonDanisch
 User - wxia
 User - hibiu1
 User - shyam057cs
 User - twolodzko
 User - jsbee

Maybe the problem is with unauthenticated requests? Unfortunately I can't test here, unauthenticated requests from my ip address are being blocked by github for some reason...

from github.jl.

WestleyArgentum avatar WestleyArgentum commented on July 1, 2024

Oh, it has been so long since I've looked at this, totally forgot about https://github.com/WestleyArgentum/GitHub.jl/blob/master/src/utils.jl#L53

So stargazers, contributors, etc, should be making the repeated requests for you (and I'm not being blocked by github, I'm making too many calls haha).

from github.jl.

WestleyArgentum avatar WestleyArgentum commented on July 1, 2024

Sorry for totally narrating the debugging process, realized that you had attempt_stats_request in the title and that my list of contributors was in fact truncated. Looks like we need to work get_pages into stats requests

from github.jl.

WestleyArgentum avatar WestleyArgentum commented on July 1, 2024

Alas! I refactored this to support paging, only to discover that github doesn't do paging for contributors because it's too expensive an operation: https://stackoverflow.com/questions/18148490/how-can-i-get-more-than-100-results-from-github-api-v3-using-github-api-gem

So I guess this is as fixed as I can make it -- if github ever flips the switch and turns on paging for contributors then it should work

from github.jl.

jiahao avatar jiahao commented on July 1, 2024

Actually you can get paginated contributors using a different URL:

https://api.github.com/repos/JuliaLang/julia/contributors?page=2

It doesn't contain the weeks information but I don't think many people use that anyway. (I certainly don't need it for World of Julia.)

from github.jl.

WestleyArgentum avatar WestleyArgentum commented on July 1, 2024

Interesting, I'll try looking into that then

from github.jl.

WestleyArgentum avatar WestleyArgentum commented on July 1, 2024

Please have a look at that pull request and let me know if it works for you

from github.jl.

Related Issues (20)

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.