mmilidoni / github-downloads-count Goto Github PK
View Code? Open in Web Editor NEWA script to get downloads count of your GitHub repositories
Home Page: http://mmilidoni.github.io/github-downloads-count/
License: Apache License 2.0
A script to get downloads count of your GitHub repositories
Home Page: http://mmilidoni.github.io/github-downloads-count/
License: Apache License 2.0
Hi
Can i have same script for windows for knowing GitHub downloads count. If you have any binaries for windows please post me.
Thanks
~ Ssire
After running ./gdc anselal
a few times I do not get stats for all my repos and get "No data" instead. For example ./gdc anselal wekan
returns stats (sometimes)
When running gdc via python gdc <user> <repository>
I get the following error:
File "gdc", line 6
print "Usage:
"
+ sys.argv[0] + " github-user [github-project]"
.
After I fixed all print "value"
to print("value")
it says:
Traceback (most recent call last):
File "gdc", line 16, in (module)
import cStringIO
ImportError: No module named 'cStringIO'
./gdc Randolph42
./gdc Alenka
(no result)
./gdc DeepCloudPtyLtd
Traceback (most recent call last):
File "./gdc", line 48, in
full_names.insert(0, ensure_str(rep['full_name']))
TypeError: string indices must be integers
When I try to use this program, it takes a while and returns with no results:
jeroen@server:/github-downloads-count$ ./gdc jeroensteenhuis/github-downloads-count$
jeroen@server:
Also with a project given no results are returned:
jeroen@server:/github-downloads-count$ ./gdc jeroensteenhuis wensn/github-downloads-count$
jeroen@server:
I couldn't find something about it in the readme.md, do you have any idea what might be wrong?
Kind Regards
Great script, is there any way to get a count of how many times a single file inside a repo is being downloaded? I have a project where I push daily updates and people use my update-script to pull the updated config file on a daily basis. Would be great to be able to get some stats on this to see how many active users are out there.
I have this error shown on the title.
How may I fix it?
I have run in git-bash on my Windows 7 computer.
$ ./gdc osparking
File "./gdc", line 7
print "Usage: " + sys.argv[0] + " github-user [github-project]"
^
SyntaxError: Missing parentheses in call to 'print'
Thanks.
sudo pip3 install requests
[sudo] password for xy:
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.22.0)
~/g/github-downloads-count (master)> ./gdc rethinkdb
Error: requests is not installed
Installing Requests is simple with pip:
pip install requests
More info: http://docs.python-requests.org/en/latest/
After installing the latest release (1.2 beta), I can get download counts the first few times I run the gdc command, but shortly afterwards I start getting the following error:
Traceback (most recent call last):
File "./gdc", line 48, in <module>
full_names.insert(0, ensure_str(rep['full_name']))
TypeError: string indices must be integers
I'm on Mac OS X 10.10.5
./gdc cryptic0 distruct2
Traceback (most recent call last):
File "./gdc", line 41, in
full_names[0] = sys.argv[1] + "/" + sys.argv[1]
IndexError: list assignment index out of range
Hi Michele,
I found your work online, while looking for ways to get download stats from GitHub. I was very excited about it, until I tried to implement this. Forgive me my ignorance, but i was hoping you could explain in a little more detail where to run this script, how to install it. For instance, it's Python script, but I'm not sure if I should run it in Git or Python? Please provide a little more detail on this part.
Thanks for your hard work on this! I hope I get it to work for myself.
Connie
Hello, I find your script very useful. Thank you very much.
I wonder if it's possible for the script to show also download counts for source archives in the releases.
Thanks.
Edit: I don't know github API. I just wonder if it's possible.
When using it via python gdc <user> <repository>
it says:
Traceback (most recent call last):
File "gdc", line 41, in (module)
full_names[0] = sys.argv[1] + "/" + sys.argv[1]
IndexError: list assignment index out of range
Is it possible to install github-downloads-count via Homebrew? That would be awesome!
./gdc Randolph42
./gdc Alenka
Gives nothing. Alenka is a valid release.
Python 2.7.5+ on Linux 3.11.0-23-generic
How can i use gdc script in my README.md?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.