try this: We can access a tag’s attributes by treating it like a dictionary.
from bs4 import BeautifulSoup
html = """<countdown current_time="1611585537797" date="1611603000" listing="f446d440-9d45-4e48-bf93-69c5e117fac2" formatted_date="25th January 2021 19:30:00"></countdown>"""
soup = BeautifulSoup(html, 'lxml')
tag = soup.countdown
print(tag.attrs['formatted_date'])
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…