def get_source(category):
    '\n    function that gets the json response to our url request\n    '
    get_source_url = NEWS_API_BASE_URL.format(category, api_key)
    print(get_source_url)
    with urllib.request.urlopen(get_source_url) as url:
        get_source_data = url.read()
        get_source_response = json.loads(get_source_data)
        sources_result = None
        if get_source_response['sources']:
            sources_results_list = get_source_response['sources']
            sources_result = process_sources(sources_results_list)
            print(sources_result)
    return sources_result
function that gets the json response to our url request
def get_source(category):
    '\n    \n    '
    get_source_url = NEWS_API_BASE_URL.format(category, api_key)
    print(get_source_url)
    with urllib.request.urlopen(get_source_url) as url:
        get_source_data = url.read()
        get_source_response = json.loads(get_source_data)
        sources_result = None
        if get_source_response['sources']:
            sources_results_list = get_source_response['sources']
            sources_result = process_sources(sources_results_list)
            print(sources_result)
    return sources_result