text_plain_output_1.png
from bs4 import BeautifulSoup

import pandas as pd

import requests

webpage_response = requests.get('https://bank.gov.ua/ua/markets/exchangerates')
webpage = webpage_response.content
soup = BeautifulSoup(webpage, 'html.parser')

soup.table

k = soup.find_all(attrs={'data-label': 'Офіційний курс'})
t1 = []
for i in k:
    m = i.string
    t1.append(float(m.replace(',', '.')))
k = soup.find_all(attrs={'data-label': 'Код літерний'})
t2 = []
for i in k:
    t2.append(i.string)
t = {'ccy': t2, 'value': t1}

import pandas as pd
df = pd.DataFrame(data=t)
print(df)