Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

github find out download filesize

1) Go to https://api.github.com/repos/<USER>/<REPO>
2) Check the `size` property

Example: https://api.github.com/repos/torvalds/linux

---
Shell command: echo https://github.com/torvalds/linux.git | perl -ne 'print $1 if m!([^/]+/[^/]+?)(?:.git)?$!' | xargs -I{} curl -s -k https://api.github.com/repos/'{}' | grep size
---
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #github #find #download #filesize
ADD COMMENT
Topic
Name
1+9 =