def process_sources(sources_list):
    '\n    Function that checks the news results and turn them into objects\n    \n    Args:\n        sources_list: A list of dictionaries that contain sources details\n    '
    sources_result = []
    for source_item in sources_list:
        author = source_item.get('author')
        title = source_item.get('title')
        imageurl = source_item.get('urltoimage')
        description = source_item.get('description')
        url = source_item.get('url')
        id = source_item.get('id')
        sources_object = Sources(author, title, imageurl, description, url, id)
        sources_result.append(sources_object)
    return sources_result
Function that checks the news results and turn them into objects

Args:
    sources_list: A list of dictionaries that contain sources details
def process_sources(sources_list):
    '\n    Function that checks the news results and turn them into objects\n    \n    Args:\n        sources_list: A list of dictionaries that contain sources details\n    '
    sources_result = []
    for source_item in sources_list:
        author = source_item.get('author')
        title = source_item.get('title')
        imageurl = source_item.get('urltoimage')
        description = source_item.get('description')
        url = source_item.get('url')
        id = source_item.get('id')
        sources_object = Sources(author, title, imageurl, description, url, id)
        sources_result.append(sources_object)
    return sources_result