GithubHelp home page GithubHelp logo

Comments (6)

nchah avatar nchah commented on June 5, 2024

Hi Gowrisankar,

If I understand your question correctly, I believe you're only able to get traffic-stats for the repositories or forks that you own.

from github-traffic-stats.

gowrisankar22 avatar gowrisankar22 commented on June 5, 2024

@nchah
thanks a lot for your reply..
is there anyway to get the traffic from other repositories if i have permission to see only traffic ??

BRs, Gowrisankar

from github-traffic-stats.

nchah avatar nchah commented on June 5, 2024

If you can see the traffic stats for a repository (any Repo > Graphs > Traffic) then this script should be able to get the stats as well. As long as you're an owner or collaborator (any Repo > Settings > Collaborators) of a repo you should see the traffic stats.

from github-traffic-stats.

gowrisankar22 avatar gowrisankar22 commented on June 5, 2024

@nchah
thanks a lot first of all :)
cool :) I got it now. it works with few errors.. can you please check ?

Date Views Unique visitors
Totals 7 1
2017-01-05 7 1

Traceback (most recent call last):
File "github-traffic-stats.py", line 187, in
main(args.username, args.repo, args.save_csv)
File "github-traffic-stats.py", line 176, in main
store_csv(repo, traffic_response)
File "github-traffic-stats.py", line 125, in store_csv
with open(csv_file_name, 'a') as csvfile:
IOError: [Errno 2] No such file or directory: 'data/2017-01-06-12h-45m-traffic-stats.csv'

how to check traffic to partcular time frame? for an example last two weeks.

BRs, Gowrisankar

from github-traffic-stats.

nchah avatar nchah commented on June 5, 2024

No problem, glad to help!

Looks like the traceback is saying the CSV file couldn't be located in the "data" folder. Feel free to modify that line in the code accordingly.

I think it's a limitations with the GitHub API or traffic-stats itself. The API only returns traffic stats for the most recent ~2 weeks or so. I haven't looked into this any further when I last built this though so maybe the documentation has changed :)

from github-traffic-stats.

gowrisankar22 avatar gowrisankar22 commented on June 5, 2024

thank you :) ... you have been a great help

from github-traffic-stats.

Related Issues (18)

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.