In [ ]:
import github3

In [ ]:
gh = github3.login('willingc', '')

In [ ]:
# Get all Jupyter repos
repos = [r.refresh() for r in gh.repositories_by('jupyter')]

In [ ]:
for repo in repos:
    text = ('%s: %d' % (repo.name, repo.open_issues_count))
    print(text)

In [ ]:
for repo in repos:
    print(repo.name, repo.url)
    print('   ', repo.description)
    print('   ', repo.homepage)
    print('   Open   ', repo.open_issues_count)

In [ ]:
for repo in repos:
    repo.code_frequency

In [ ]:
repo.code_frequency

In [ ]:
repo.code_frequency()

In [ ]:
weeks = repo.code_frequency()

In [ ]:
print(weeks)

In [ ]:
type(weeks)

In [ ]:
mydict = repo.as_dict()

In [ ]:
print(mydict)

In [ ]:
tryj = repo.as_json()

In [ ]:
import json

In [ ]:
with open('data.json', 'w') as f:
    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 [ ]: