def get_updated_countries_lang(res):
countries_updated = make_countries_list(res)
for country_updated in countries_updated:
try:
country = CountryLang.objects.get(title=country_updated['name'])
except country.DoesNotExist:
country = CountryLang(country_id=country_updated['id'],
title=country_updated['name'])
country.save()
print("Country {} has been added to the database".format(country_updated['name']))