')[0] .strip() ) tem = ( weather_info.split("")[-1] .split("")[0] .replace("/", " / ") .strip() ) if len(tem) > 10: tem = weather_info.split("")[1].split("")[0].strip() wind = weather_info.split('')[0] .replace('" class="', " / ") ) else: wind_direction.append( wind[1].split('">