Comments (8)
Github doesn't has such API
from gloc.
Changing to the tokei api may help. They even have badges, and ignore code comments in a ton of languages.
from gloc.
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.
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.
@Lazerbeak12345 let's keep in touch regarding this task. I want to make it too. It would be great feature)
from gloc.
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.
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.
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)
- Owner prefix gets removed from the search page HOT 1
- Stopped working HOT 3
- Works incorrectly on the trend page HOT 2
- Consider support for Gitlab?
- youtube autoplay always on HOT 1
- Extension partially stopped working HOT 3
- Extension stopped working for main pages of any repo HOT 8
- LOCs of the pins are not shown for some users
- Stats are unavailable HOT 3
- Negative lines count HOT 1
- Fast way to add new languages HOT 1
- Feature Request: show lines of code for subdirectorys
- Error: unknown location for counting LOC (lines of code) on all examples
- Private repos showing "Stat is unavailable"
- Featured badge
- It doesn't work on search page
- Upgrade Manifest to version 3
- Is there option how to boost performance of the counting? Its too slow
- Why are there 2 elements whe counting?
- Add hosted weblate for translations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gloc.