In [ ]:
import github3
In [ ]:
gh = github3.login('willingc', '')
In [ ]:
# Get all Jupyter repos
repos = [r.refresh() for r in gh.repositories_by('jupyter')]
In [ ]:
import json
In [ ]:
for repo in repos:
text = ('%s: %d' % (repo.name, repo.open_issues_count))
print(text)
In [ ]:
for repo in repos:
print(json.dumps(repo.as_dict(), indent=4))
In [ ]:
print(json.dumps(repos[1].as_dict())
In [ ]:
print(mydict)
In [ ]:
tryj = repo.as_json()
In [ ]:
import json
In [ ]:
with open('data.json', 'w') as f:
print(json.dump(tryj, f)
In [ ]:
json.dumps(tryj, indent=4)
In [ ]:
print(json.dumps(mydict, indent=4))
In [ ]:
import pandas
In [ ]:
datanew = pandas.read_json(tryj, typ='series')
print("Series\n", datanew)
In [ ]:
datanew.head()
In [ ]: