209 похожих чатов

Курс беру из сайта ЦБ по этому коду let   Источник =

Web.BrowserContents("https://cbr.ru/currency_base/dynamics/?UniDbQuery.Posted=True&UniDbQuery.so=1&UniDbQuery.mode=1&UniDbQuery.date_req1=&UniDbQuery.date_req2=&UniDbQuery.VAL_NM_RQ=R01239&UniDbQuery.From=01.01.2022&UniDbQuery.To="),
    #"Извлеченная таблица из HTML" = Html.Table(Источник, {{"Column1", "TABLE.data > * > TR > TD[colspan=""3""]:not([rowspan]):nth-child(1):nth-last-child(1), TABLE.data > * > TR > TH:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(3), TABLE.data > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(3)"}, {"Column2", "TABLE.data > * > TR > TD[colspan=""3""]:not([rowspan]):nth-child(1):nth-last-child(1), TABLE.data > * > TR > TH:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(3) + TH:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(2), TABLE.data > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(2)"}, {"Column3", "TABLE.data > * > TR > TD[colspan=""3""]:not([rowspan]):nth-child(1):nth-last-child(1), TABLE.data > * > TR > TH:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(3) + TH:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(2) + TH:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(1), TABLE.data > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(2) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(1)"}}, [RowSelector="TABLE.data > * > TR"]),
    #"Измененный тип" = Table.TransformColumnTypes(#"Извлеченная таблица из HTML",{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}}),
    #"Строки с примененным фильтром" = Table.SelectRows(#"Измененный тип", each ([Column1] <> "Дата ▼" and [Column1] <> "Евро")),
    #"Измененный тип1" = Table.TransformColumnTypes(#"Строки с примененным фильтром",{{"Column1", type date}, {"Column3", type number}}),
    #"Удаленные столбцы" = Table.RemoveColumns(#"Измененный тип1",{"Column2"}),
    #"Сортированные строки" = Table.Sort(#"Удаленные столбцы",{{"Column1", Order.Descending}})
in
    #"Сортированные строки"

5 ответов

51 просмотр

у цб есть апи, лучше через него тащить курс

Andrey Kozlenok
у цб есть апи, лучше через него тащить курс

Если уж на то пошло, то в любой ERP есть нужный справочник, и в 1С - тоже) А вкуривать отдельно апи для такой задачи - как-то слишком)

Mikhail Muzykin
Ну там несложно)))

У меня на АПИ аллергия, во0первых они вполне могут быть кривые, во вторых - каждый такой источник - индивидуальный

Dog Smile
Если уж на то пошло, то в любой ERP есть нужный сп...

у нас не было таких данных в ерп, приходилось тащить с цб

Похожие вопросы

Обсуждают сегодня

Guys what is ur real (no jokes) expectation of link price during this cycle?
Hobbyist
28
Hey everyone! How's your weekend going so far?
Noah Noure
17
Hey, it seems like a solid project for the gaming industry. What are your initial thoughts?
Josh
26
What got more people talking about FTM? The week we were biggest gainer or this week with loads of amazing news but no positive price movement? The week we were biggest gain...
Yankee Ruin X
11
Works for everyone else, you think think SOL organically went from $8 to $220? Of course it didn’t, they pumped it. First to $20 with the narrative it would go back to $100, ...
Yankee Ruin X
8
I am honored to report that all the deliverables for the BCHFAQ Flipstarter Phase 1 have been completed. I appreciate the opportunity I've had to put all this together using t...
fixthetracking
15
I honestly got a question to ask the idex team and all the idex supporters, I'm not sure if it's a good question for here but I will still ask. I got 930000$ coins do you thin...
Lennworth
7
Previous Q/A list response: Any news on usdl revamp? USDL revamp won’t be in name as that would cause too much issues with hardcoding. USDL revamp will be in the form of its ...
Sig | LGCY | BattleVerse L1 | BitWin
5
Why the price is plummeting even after such a bullish week?
Crypto Lover 💕
11
Hi everyone! I have a two-folded message to share today. First: updates and news, as we are being asked for those. We still want to go like we did the last 6 years: we w...
Marten | Unibright.io
31
Карта сайта