Coder Social home page Coder Social logo

Comments (8)

kas-elvirov avatar kas-elvirov commented on June 25, 2024 1

Github doesn't has such API

image

from gloc.

Lazerbeak12345 avatar Lazerbeak12345 commented on June 25, 2024

Changing to the tokei api may help. They even have badges, and ignore code comments in a ton of languages.

from gloc.

kas-elvirov avatar kas-elvirov commented on June 25, 2024

Changing to the tokei api may help. They even have badges, and ignore code comments in a ton of languages.

Interesting idea. Thanks man

from gloc.

Lazerbeak12345 avatar Lazerbeak12345 commented on June 25, 2024

Thanks for the assignment; I appreciate the gesture! I don't know that I'll be able to put much time into this, but I'll see what I can do.

from gloc.

kas-elvirov avatar kas-elvirov commented on June 25, 2024

@Lazerbeak12345 let's keep in touch regarding this task. I want to make it too. It would be great feature)

from gloc.

Lazerbeak12345 avatar Lazerbeak12345 commented on June 25, 2024

I played around with their badges api and discovered that it usually works on smaller repos such as:

  • this one: . ([![](https://tokei.rs/b1/github/artem-solovev/gloc)](https://github.com/artem-solovev/gloc))
  • Their repo: . ([![](https://tokei.rs/b1/github/XAMPPRocky/tokei)](https://github.com/XAMPPRocky/tokei))

But it often either takes a long time to load, or just never resolves for larger repos, such as chromium:

. ([![](https://tokei.rs/b1/github/chromium/chromium)](https://github.com/chromium/chromium))

You may need to wait a bit for these images to load, if they load at all. (I've been getting 502 errors)

from gloc.

kas-elvirov avatar kas-elvirov commented on June 25, 2024

Ohh, that's great. I will keep in mind.
I have to postpone this task because i'm working on my new project
But i wanted release something similar you suggested anyway because it will be very useful
Thanks again )

from gloc.

Lazerbeak12345 avatar Lazerbeak12345 commented on June 25, 2024

Just thought i'd look at making this happen, and I've got bad news. Tokei provides an API, sure, but there's two ways of using it:

  • Crawl the actual code
  • Get badges. Only.

They have no api to get the actual number. This will work but it'll limit the ability to have status updates like "loading..." etc.

from gloc.

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.