import requests
from bs4 import BeautifulSoup
url = "https://yandex.ru/pogoda/moscow"
response = requests.get(url)
if response.status_code == 200:
soup = BeautifulSoup(response.text, 'html.parser')
all_spans = soup.find(class_='fact__temp-wrap').find_all('span')
print(all_spans)