nchah / github-traffic-stats

Get statistics on web traffic to your GitHub repositories.
https://pypi.org/project/github-traffic-stats/
121 stars 31 forks source link

enhancement: export to sql #4

Open thirschbuechler opened 7 years ago

thirschbuechler commented 7 years ago

export to a database, e.g. sql would be awesome. someone has done something similar already, but in MS Visual Studio: https://github.com/Microsoft/GitHubTelemetryParsor

oshadmon commented 6 years ago

@thirschbuechler and @nchah - In a new fork, I have updated the original main to connect to a PostgresSQL database, and send the results there. https://github.com/oshadmon/github-traffic-stats

PR: https://github.com/nchah/github-traffic-stats/pull/15

(If this works issue can be closed)

oshadmon commented 6 years ago

@thirschbuechler - PR #15 is merged. Please let me know if that's good enough, or you want actual SQL file.

Just as FYI you can do pg_dump to send data in PSQL to SQL file.

thirschbuechler commented 6 years ago

@oshadmon @nchah thanks, i'll give it a shot

oshadmon commented 6 years ago

@thirschbuechler - If that doesn't work let me know, and I can enhance the code to do a write SQL to file as well.