from typing import List
from typing import Dict


def arrange_results_to_urls(results: List, url_list: List) -> Dict:
    """ Arrange and filter the URLs results according to the URLs list that we asked information on.
    Args:
        results: the API response.
        url_list: The URLs list that we asked information on.
    Returns:
        (dict) The results according the urls.
    """
    urls_results: Dict[str, list] = {}
    for url in url_list:
        urls_results[url] = []

    for result in results:
        url = result.get('threat', {}).get('url')
        urls_results[url].append(result)

    return urls_results