K
K
KolyaKN2021-01-28 12:19:30
XML
KolyaKN, 2021-01-28 12:19:30

How to change the script to accept xml file and not txt?

I am making a site monitoring exchange offices.
I have a file in the form of a table where it is, the name of the exchanger, a link to the exchanger, and a link to the exchange rates of this exchanger with the txt file extension.
I have a script that works well. but with the txt format, I need to convert it to xml, since most exchanges now work with xml. and all exchange rates are usually in xml.

Who knows how to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ScriptKiddo, 2021-01-28
@ScriptKiddo

Use xml.etree.ElementTree to Parse XML
Example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question