Answer the question
In order to leave comments, you need to log in
How to make the euro exchange rate taken from the Central Bank website every time a new one?
Good afternoon,
please tell me how you can solve this problem:
The site has a plate with prices and a number of buttons, one of them should change the data in the table from rubles to euros and back. Now all the data is changing on the client. That is, the euro exchange rate is in a variable.
But it is clear that it would be more logical for the euro exchange rate to be taken from somewhere on the Central Bank website each time the site is loaded - a new one.
Can this be done and what is the best way to do it? Please advise.
Answer the question
In order to leave comments, you need to log in
I think you will find what you need here: www.cbr.ru/scripts/Root.asp?PrtId=DWS
If I'm not mistaken, the exchange rate of the Central Bank changes once a day at 00:00. The exchange rate does not change on weekends. Write a page parsing script, write it to the database (or where the data is being taken from now) and run the cron script once a day at 1 am.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question