- запрос на
https://api.ozon.ru/composer-api.bx/page/json/v1?url=/products/[тут ID продукта]/?layout_container=appPdpPage3&layout_page_index=3
- в узле "layout" найти узел с параметром component=seller
- из найденного узла взять stateId (например seller-814807-appPdpPage3-3)
- в узле pdp найти узел с следующим полным xpath /pdb/seller/seller-814807-appPdpPage3-3 последняя ветка это параметр из предыдущего пункта
- найденный узел и будет информацией о продавце
This file contains 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
//Функция конвертирования Excel (xlsx) в CSV | |
function xlsx2csv($file) { | |
//Подключим библиотеку | |
include "../libs/xlsx/PHPExcel.php"; | |
//Откроем файл | |
$reader = PHPExcel_IOFactory::createReaderForFile($file); | |
//Читать только данные, без стилей | |
$reader->setReadDataOnly(true); | |
//Прочитаем файл | |
$xlsx = $reader->load($file);; |