Created
April 22, 2016 20:16
-
-
Save jbarciauskas/7c39e0be75d0ff00ed0d224c0a80c5c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
r = requests.get('https://api.gemnasium.com/v1/projects', auth=('X', 'e05c25f9248015c5aebb26049719ed23')) | |
data = r.json() | |
for repo in data['edx-gemnasium']: | |
print repo['slug'] | |
r = requests.get('https://api.gemnasium.com/v1/projects/' + repo['slug'] + '/dependencies', auth=('X', 'e05c25f9248015c5aebb26049719ed23')) | |
dependencies = r.json() | |
for dependency in dependencies: | |
if dependency['color'] != 'green': | |
print dependency['package']['slug'] | |
print dependency['requirement'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment