Giter Site home page Giter Site logo

mmilidoni / github-downloads-count Goto Github PK

View Code? Open in Web Editor NEW
133.0 11.0 28.0 24 KB

A script to get downloads count of your GitHub repositories

Home Page: http://mmilidoni.github.io/github-downloads-count/

License: Apache License 2.0

Python 95.63% Dockerfile 2.56% Shell 1.81%
download-counts github github-api

github-downloads-count's Introduction

github-downloads-count's People

Contributors

chinenual avatar chocolateboy avatar cmsj avatar devnoname120 avatar ethanwhite avatar ilius avatar kingargyle avatar mmilidoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-downloads-count's Issues

Script For Windows

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

Getting "No data"

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)

Problems with Python 3 (Windows)

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'

Swapping users causes error

./gdc Randolph42
./gdc Alenka
(no result)

try organisation instead:

./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

Tried but does not give any result

When I try to use this program, it takes a while and returns with no results:

jeroen@server:/github-downloads-count$ ./gdc jeroensteenhuis
jeroen@server:
/github-downloads-count$

Also with a project given no results are returned:

jeroen@server:/github-downloads-count$ ./gdc jeroensteenhuis wensn
jeroen@server:
/github-downloads-count$

I couldn't find something about it in the readme.md, do you have any idea what might be wrong?

Kind Regards

Any way to get amount of downloads of one file in a repo?

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.

Missing parentheses in call to 'print'

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.

gdc dont find requests

 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/

getting TypeError after running it a few times

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

line 41 error

./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

using this script

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

Download counts for source archives?

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.

Home-brew support

Is it possible to install github-downloads-count via Homebrew? That would be awesome!

Gives no result

./gdc Randolph42
./gdc Alenka

Gives nothing. Alenka is a valid release.
Python 2.7.5+ on Linux 3.11.0-23-generic

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.