Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant License Information (GitHub) #38

Open
LRWeber opened this issue Jun 5, 2019 · 0 comments
Open

Redundant License Information (GitHub) #38

LRWeber opened this issue Jun 5, 2019 · 0 comments

Comments

@LRWeber
Copy link
Member

LRWeber commented Jun 5, 2019

It looks like some amount of license information is manually maintained and provided by scraper/github/util.py.

Complete license listings are readily available from GitHub and seem to make this script redundant.

via the REST API
https://api.github.com/licenses

or via the GraphQL API

{
  licenses() {
    spdxId
    name
    url
  }
}

Perhaps we could re-write scraper/code_gov/models.py and any other relevant code such that we wouldn't have to maintain these hard-coded mappings?

(Suggested in #37 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant