import requests
from bs4 import BeautifulSoup
import time
DOLLAR_RUB = '—-'
headers = {'User-Agent': '——'}
def get_currency():
full_page = requests.get(DOLLAR_RUB, headers=headers)
soup = BeautifulSoup(full_page.content, 'html.parser')
convert = soup.findAll("span", {"class": "DFlfde", "class": "SwHCTb", "data-precision": 2})
print (convert[0].text)
time.sleep(3)
check_currency()