scraper/github/__init__.py
def gov_orgs():
    """
    Returns a list of the names of US Government GitHub organizations

    Based on: https://government.github.com/community/

    Exmample return:
        {'llnl', '18f', 'gsa', 'dhs-ncats', 'spack', ...}
    """
    us_gov_github_orgs = set()

    gov_orgs = requests.get('https://government.github.com/organizations.json').json()

    us_gov_github_orgs.update(gov_orgs['governments']['U.S. Federal'])
    us_gov_github_orgs.update(gov_orgs['governments']['U.S. Military and Intelligence'])
    us_gov_github_orgs.update(gov_orgs['research']['U.S. Research Labs'])

    return list(us_gov_github_orgs)
def gov_orgs():
    us_gov_github_orgs = set()

    gov_orgs = requests.get('https://government.github.com/organizations.json').json()

    us_gov_github_orgs.update(gov_orgs['governments']['U.S. Federal'])
    us_gov_github_orgs.update(gov_orgs['governments']['U.S. Military and Intelligence'])
    us_gov_github_orgs.update(gov_orgs['research']['U.S. Research Labs'])

    return list(us_gov_github_orgs)
def gov_orgs ( ) : us_gov_github_orgs = set ( ) gov_orgs = requests . get ( 'https://government.github.com/organizations.json' ) . json ( ) us_gov_github_orgs . update ( gov_orgs [ 'governments' ] [ 'U.S. Federal' ] ) us_gov_github_orgs . update ( gov_orgs [ 'governments' ] [ 'U.S. Military and Intelligence' ] ) us_gov_github_orgs . update ( gov_orgs [ 'research' ] [ 'U.S. Research Labs' ] ) return list ( us_gov_github_orgs )
Returns a list of the names of US Government GitHub organizations

    Based on: https://government.github.com/community/

    Exmample return:
        {'llnl', '18f', 'gsa', 'dhs-ncats', 'spack', ...}
Returns a list of the names of US Government GitHub organizations