def get_data_from_region(region_url_list, rent_or_sale):
    """
    Given a list of urls of different regions and the listing type (rent or buy), returns a list of urls with all
    the properties for this specific listing type, each url for a particular region.
    """
    regional_data = []
    for url in region_url_list:
        region_name = url.split('/')[-1]
        regional_data.append(
            f'https://phoenix.onmap.co.il/v1/properties/mixed_search?'
            f'option={rent_or_sale}&section=residence&city={region_name}&$sort=-is_top_promoted+-search_date')
    return regional_data