Created
June 14, 2023 20:04
-
-
Save h8nor/d012242bc8499602d5ab43efb9960daf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40"> | |
<head> | |
<meta http-equiv=Content-Type content="text/x-ms-odc; charset=utf-8"> | |
<meta name=ProgId content=ODC.Database> | |
<meta name=SourceType content=OLEDB> | |
<title>https://www.planetaexcel.ru/techniques/13/16185/</title> | |
<xml id=docprops><o:DocumentProperties | |
xmlns:o="urn:schemas-microsoft-com:office:office" | |
xmlns="http://www.w3.org/TR/REC-html40"> | |
<o:Description>Соединение с запросом "product" в книге.</o:Description> | |
<o:Name>wildberries-ru.catalog.product</o:Name> | |
</o:DocumentProperties> | |
</xml><xml id=msodc><odc:OfficeDataConnection | |
xmlns:odc="urn:schemas-microsoft-com:office:odc" | |
xmlns="http://www.w3.org/TR/REC-html40"> | |
<odc:PowerQueryConnection odc:Type="OLEDB"> | |
<odc:ConnectionString>Provider=Microsoft.Mashup.OleDb.1;Data Source=$Workbook$;Location=product;Extended Properties=""</odc:ConnectionString> | |
<odc:CommandType>SQL</odc:CommandType> | |
<odc:CommandText>SELECT * FROM [product]</odc:CommandText> | |
</odc:PowerQueryConnection> | |
<odc:PowerQueryMashupData><Mashup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/DataMashup"><Client>EXCEL</Client><Version>2.94.6229.0001</Version><MinVersion>2.21.0.0</MinVersion><Culture>ru-RU</Culture><SafeCombine>true</SafeCombine><Items><Query Name="pageID"><Description>pages</Description><Formula><![CDATA[1 meta [IsParameterQuery=true, Type="Number", IsParameterQueryRequired=true]]]></Formula><IsParameterQuery xsi:nil="true" /><IsDirectQuery xsi:nil="true" /></Query><Query Name="page_catalog"><Formula><![CDATA[let // Читать данные https://www.wildberries.ru/catalog/knigi/hudozhestvennaya-literatura/detektivy?page={pageID} #"Источник" = Json.Document( Web.Contents( "https://catalog.wb.ru/catalog/books_fiction/catalog?appType=1&cat=9165&curr=rub&dest=-1257786&regions=80,38,4,64,83,33,68,70,69,30,86,75,40,1,66,110,22,31,48,71,114&sort=popular&spp=0&page=" & Number.ToText(pageID) ) ), #"Список" = #"Источник"[data][products] in #"Список"]]></Formula><IsParameterQuery xsi:nil="true" /><IsDirectQuery xsi:nil="true" /></Query><Query Name="productID"><Description>products</Description><Formula><![CDATA[1 meta [IsParameterQuery=true, Type="Number", IsParameterQueryRequired=true]]]></Formula><IsParameterQuery xsi:nil="true" /><IsDirectQuery xsi:nil="true" /></Query><Query Name="product"><Formula><![CDATA[let #"Список преобразован в таблицу" = Record.ToTable(page_catalog{productID}), #"Таблица транспонирована" = Table.Transpose(Table.SelectRows(#"Список преобразован в таблицу", each ( [Name] = "__sort" or [Name] = "brand" or [Name] = "name" or [Name] = "sale" or [Name] = "priceU" or [Name] = "salePriceU" ) )), #"Первая строка как заголовок" = Table.TransformColumnTypes( Table.PromoteHeaders( #"Таблица транспонирована", [PromoteAllScalars=true] ), {{"name", type text}, {"brand", type text}} ), #"Колонка дубль цена1" = Table.RemoveColumns( Table.AddColumn( #"Первая строка как заголовок", "priceU1", each Currency.From([salePriceU]/100) ), {"salePriceU"} ), #"Колонка дубль цена2" = Table.RemoveColumns( Table.AddColumn( #"Колонка дубль цена1", "priceU2", each Currency.From([priceU]/100) ), {"priceU"} ), #"Измененный тип дублей" = Table.TransformColumnTypes( #"Колонка дубль цена2", {{"priceU1", Currency.Type}, {"priceU2", Currency.Type}} ) in #"Измененный тип дублей"]]></Formula><IsParameterQuery xsi:nil="true" /><IsDirectQuery xsi:nil="true" /></Query></Items></Mashup></odc:PowerQueryMashupData> | |
</odc:OfficeDataConnection> | |
</xml> | |
<style> | |
<!-- | |
.ODCDataSource | |
{ | |
behavior: url(dataconn.htc); | |
} | |
--> | |
</style> | |
</head> | |
<body onload='init()' scroll=no leftmargin=0 topmargin=0 rightmargin=0 style='border: 0px'> | |
<table style='border: solid 1px threedface; height: 100%; width: 100%' cellpadding=0 cellspacing=0 width='100%'> | |
<tr> | |
<td id=tdName style='font-family:arial; font-size:medium; padding: 3px; background-color: threedface'> | |
| |
</td> | |
<td id=tdTableDropdown style='padding: 3px; background-color: threedface; vertical-align: top; padding-bottom: 3px'> | |
| |
</td> | |
</tr> | |
<tr> | |
<td id=tdDesc colspan='2' style='border-bottom: 1px threedshadow solid; font-family: Arial; font-size: 1pt; padding: 2px; background-color: threedface'> | |
| |
</td> | |
</tr> | |
<tr> | |
<td colspan='2' style='height: 100%; padding-bottom: 4px; border-top: 1px threedhighlight solid;'> | |
<div id='pt' style='height: 100%' class='ODCDataSource'></div> | |
</td> | |
</tr> | |
</table> | |
<script language='javascript'> | |
function init() { | |
var sName, sDescription; | |
var i, j; | |
try { | |
sName = unescape(location.href) | |
i = sName.lastIndexOf(".") | |
if (i>=0) { sName = sName.substring(1, i); } | |
i = sName.lastIndexOf("/") | |
if (i>=0) { sName = sName.substring(i+1, sName.length); } | |
document.title = sName; | |
document.getElementById("tdName").innerText = sName; | |
sDescription = document.getElementById("docprops").innerHTML; | |
i = sDescription.indexOf("escription>") | |
if (i>=0) { j = sDescription.indexOf("escription>", i + 11); } | |
if (i>=0 && j >= 0) { | |
j = sDescription.lastIndexOf("</", j); | |
if (j>=0) { | |
sDescription = sDescription.substring(i+11, j); | |
if (sDescription != "") { | |
document.getElementById("tdDesc").style.fontSize="x-small"; | |
document.getElementById("tdDesc").innerHTML = sDescription; | |
} | |
} | |
} | |
} | |
catch(e) { | |
} | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment