GithubHelp home page GithubHelp logo

been-there-done-that / github-download Goto Github PK

View Code? Open in Web Editor NEW

This project forked from povertyaction/github-download

0.0 1.0 0.0 206 KB

Java program to download GitHub metadata

License: MIT License

Java 100.00%

github-download's Introduction

github-download

github-download downloads commit comments and select issues metadata, saving the raw JSON and writing summary .csv files.

Installing

Download the .jar file here. It includes all dependencies. You must have the Java Runtime Environment version 7 or above.

Usage

github-download can be run from the command line. It has three required flags:

-repo. The full repository name, e.g., PovertyAction/github-download.

-to. The directory in which to save the metadata. It will be created if it does not exist already.

-token. The name of a text file that contains solely a GitHub OAuth token. GitHub will supply you a token, which is a single string. You must copy it to a text file, then specify the name of that file to -token.

All together:

java -jar github-download.jar -repo PovertyAction/github-download -token token.txt -to metadata

If the name of the .jar file is not github-download.jar, use the actual filename in the command above, or rename the file as github-download.jar. If the file is not in the current working directory, you will have to specify its path.

Next, specify the metadata to download:

-issues. Download select issues metadata.

-cc. Download commit comments, including in-line notes.

To download all supported metadata:

java -jar github-download.jar -repo PovertyAction/github-download -token token.txt -to metadata -issues -cc

You may see the following warning message, which is safe to ignore:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

github-download's People

Watchers

James Cloos avatar

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.