# helper functions to use location data for data outside US/north america # K7MHI Kelly Keeton 2024 import json # pip install json from geopy.geocoders import Nominatim # pip install geopy import maidenhead as mh # pip install maidenhead import requests # pip install requests import bs4 as bs # pip install beautifulsoup4 import xml.dom.minidom from modules.log import * trap_list_location_eu = ("ukalert", "ukwx", "ukflood") def get_govUK_alerts(): try: # get UK.gov alerts url = 'https://www.gov.uk/alerts' response = requests.get(url) soup = bs.BeautifulSoup(response.text, 'html.parser') # the alerts are in