()
return rain
Checks if it's going to rain
    Args:
        None
    Returns:
        rain (bool): True if rainy
Checks if it's going to rain
    Args:
        None
    Returns:
        rain (bool): True if rainy
Checks if it s going to rain Args : None Returns : rain ( bool ) : True if rainy
def rain_check():
    """Checks if it's going to rain
    Args:
        None
    Returns:
        rain (bool): True if rainy
    """
    url = 'https://weather.com/en-CA/weather/today/l/CAON4756:1:CA'
    rain = False

    try:
        res = requests.get(url)
        res.raise_for_status()

        soup = bs4.BeautifulSoup(res.text, 'html.parser')
        weather_elem = soup.select('.today_nowcard-phrase')

        if 'rain' in weather_elem[0].text.lower():
            rain = True

    except Exception as exc:
        print(exc)

    return rain
def rain_check ( ) : url = 'https://weather.com/en-CA/weather/today/l/CAON4756:1:CA' rain = False try : res = requests . get ( url ) res . raise_for_status ( ) soup = bs4 . BeautifulSoup ( res . text , 'html.parser' ) weather_elem = soup . select ( '.today_nowcard-phrase' ) if 'rain' in weather_elem [ 0 ] . text . lower ( ) : rain = True except Exception as exc : print ( exc ) return rain