function getUsdt() {
var fetch = UrlFetchApp.fetch('https://garantex.org/trading/usdtrub', {muteHttpExceptions: true});
if (fetch) {
return fetch.getContentText().match(new RegExp(/exchangers":{"index":{"ask":\[{"id":\d+,"price":"\d+.\d+","volume":"\d+.\d+","usdt_price":"(\d+.\d+)",/, 'i'))[1];
}
return '';
}
=IMPORTXML(A1; "//ul[@class='tb-thumb tb-clearfix']/li[position() = 1]/div/a/img/@data-src")
<root>
<elem>мошка</elem>
<elem>кошка</elem>
<elem>окрошка</elem>
</root>
/root/elem[contains(., 'ошка')]
Element='<elem>мошка</elem>'
Element='<elem>кошка</elem>'
Element='<elem>окрошка</elem>'
/root/elem[. = 'кошка']
XPath result:
Element='<elem>кошка</elem>'
вот тут создаём
и вот так пользуем