Apr-30-2022, 10:29 AM
For me the standard way(for a long time) is to use BS(with lxml as parser for speed) or lxml alone.
Of course if new to this then may use stuff from standard library first,just to show that there other option for this.
Of course if new to this then may use stuff from standard library first,just to show that there other option for this.
from bs4 import BeautifulSoup soup = BeautifulSoup(xml_data, 'lxml-xml') multi = soup.find_all('Rate', {'multiplier': True}) for item in multi: print(item.attrs.get('currency'))
Output:HUF
JPY
KRW