{"id":437,"date":"2018-01-10T17:54:29","date_gmt":"2018-01-10T17:54:29","guid":{"rendered":"https:\/\/www.diggernaut.ru\/blog\/?p=437"},"modified":"2019-01-11T17:07:49","modified_gmt":"2019-01-11T17:07:49","slug":"parser-informatsii-s-saita-magazina-calypso-st-barth-o-tovarah-i-tsenah","status":"publish","type":"post","link":"https:\/\/www.diggernaut.ru\/blog\/parser-informatsii-s-saita-magazina-calypso-st-barth-o-tovarah-i-tsenah\/","title":{"rendered":"\u041f\u0430\u0440\u0441\u0435\u0440 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 Calypso St Barth \u043e \u0442\u043e\u0432\u0430\u0440\u0430\u0445 \u0438 \u0446\u0435\u043d\u0430\u0445"},"content":{"rendered":"<p>\u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u0432 1992, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Calypso St. Barth \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0438\u0437 \u0441\u043a\u0440\u043e\u043c\u043d\u043e\u0433\u043e \u0431\u0443\u0442\u0438\u043a\u0430 \u043a\u0443\u0440\u043e\u0440\u0442\u043d\u043e\u0439 \u043e\u0434\u0435\u0436\u0434\u044b \u0434\u043e \u0440\u043e\u0441\u043a\u043e\u0448\u043d\u043e\u0433\u043e, \u0443\u0437\u043d\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0432\u043e \u0432\u0441\u0435\u043c \u043c\u0438\u0440\u0435 \u0431\u0440\u0435\u043d\u0434\u0430. \u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u044f\u043c\u0438, \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u043e\u0439 \u0438 \u0438\u0441\u0441\u043a\u0443\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d, \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438 \u0436\u0435\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0436\u0435\u043d\u0449\u0438\u043d\u0430\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043e\u0432. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u043e \u0434\u0443\u0448\u0435 \u0441\u043c\u0435\u0441\u044c \u043b\u0435\u0433\u043a\u043e\u0439 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u0438 \u0438 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u0434\u0435\u0439, \u0432\u0430\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0430\u0441\u0441\u043e\u0440\u0442\u0438\u043c\u0435\u043d\u0442 \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430. \u041f\u0430\u0440\u0441\u0435\u0440 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 Calypso St Barth \u043e \u0442\u043e\u0432\u0430\u0440\u0430\u0445 \u0438 \u0446\u0435\u043d\u0430\u0445 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0432\u0430\u043c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0432\u0430\u0440\u043e\u0432:<\/strong> 2000<br><strong>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432:<\/strong> 2000<br><strong>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0439 \u043f\u043b\u0430\u043d \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438:<\/strong> Free<\/p>\n<p><strong>\u0412\u041d\u0418\u041c\u0410\u041d\u0418\u0415!<\/strong> \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f\u0445, \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 \u0438 \u0434\u0440. \u043c\u043e\u0433\u0443\u0442 \u043f\u0430\u0440\u0441\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c. \u0422\u0430\u043a\u0436\u0435 \u0447\u0430\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0442\u043e\u0432\u0430\u0440\u0435 \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e XHR \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0447\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<h3>\u041a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u043e\u0432\u0430\u0440\u0430\u0445 \u0438 \u0446\u0435\u043d\u0430\u0445<\/h3>\n<p>\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435 Diggernaut.<\/p>\n<ol>\n<li>\u041f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u044d\u0442\u043e\u0439 <a href=\"https:\/\/www.diggernaut.ru\/accounts\/signup\/\">\u0441\u0441\u044b\u043b\u043a\u0435 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438<\/a> \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 <a href=\"https:\/\/www.diggernaut.ru\">Diggernaut<\/a><\/li>\n<li>\u041f\u043e\u0441\u043b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f email \u0430\u0434\u0440\u0435\u0441\u0430 <a href=\"https:\/\/www.diggernaut.ru\/accounts\/login\/\">\u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0441\u0432\u043e\u044e \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c<\/a><\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043b\u044e\u0431\u044b\u0439 \u0438\u043c\u0435\u043d\u0435\u043c \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 <a href=\"https:\/\/www.diggernaut.ru\/dev\/vebsayt-proekty-sozdanie-novogo-proekta.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/li>\n<li>\u0412\u043e\u0439\u0434\u0438\u0442\u0435 \u0432\u043e \u0432\u043d\u043e\u0432\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0432 \u043d\u0435\u043c \u0434\u0438\u0433\u0433\u0435\u0440 \u0441 \u043b\u044e\u0431\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 <a href=\"https:\/\/www.diggernaut.ru\/dev\/vebsayt-proekty-sozdanie-diggera.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/li>\n<li>\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u0438\u0433\u0433\u0435\u0440\u0430 \u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u043c\u0438 \u0434\u0438\u0433\u0433\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 <a href=\"https:\/\/www.diggernaut.ru\/dev\/vebsayt-proekty-redaktirovanie-diggera.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/li>\n<li>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0438\u0433\u0433\u0435\u0440\u0430 \u0441 Debug \u043d\u0430 Active, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 <a href=\"https:\/\/www.diggernaut.ru\/dev\/vebsayt-proekty-redaktirovanie-diggera.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u0430\u0448 \u0434\u0438\u0433\u0433\u0435\u0440 \u0438 \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 <a href=\"https:\/\/www.diggernaut.ru\/dev\/vebsayt-proekty-zapusk-diggera.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/li>\n<li>\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u0432\u0430\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 <a href=\"https:\/\/www.diggernaut.ru\/dev\/vebsayt-proekty-dannye.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/li>\n<\/ol>\n<p>\u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u0438 \u0437\u0430\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e.<\/p>\n<h3>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043f\u0430\u0440\u0441\u0435\u0440\u0430<\/h3>\n<pre class=\"language-yaml line-numbers\"><code class=\"language-yaml\">---\nconfig:\n    debug: 2\n    agent: Firefox\ndo:\n- walk:\n    to: http:\/\/www.calypsostbarth.com\/new-arrivals\/clothing\n    do:\n    - find: \n        path: .col-side > ul > li \n        do: \n        - variable_clear: cat1\n        - variable_clear: cat2\n        - variable_clear: cat3\n        - find: \n            path: a\n            slice: 0\n            do: \n            - parse\n            - space_dedupe\n            - trim\n            - normalize:\n                routine: lower\n            - variable_set: cat1\n        - parse:\n            format: html\n        - register_set: \n<div><ul><li><\/ul><\/div>\n        - to_block\n        - find: \n            path: div > ul > li > ul > li \n            do: \n            - variable_clear: cat2\n            - variable_clear: cat3\n            - find: \n                path: a\n                slice: 0\n                do: \n                - parse\n                - space_dedupe\n                - trim\n                - normalize:\n                    routine: lower\n                - variable_set: cat2\n                - parse:\n                    attr: href\n                - normalize:\n                    routine: url\n                - pool_clear: default\n                - parse:\n                    attr: href\n                - link_add\n                - walk:\n                    to: links\n                    do:\n                    - find: \n                        path: .paging  li > a:matches([Nn]ext) \n                        do: \n                        - parse:\n                            attr: href\n                        - link_add\n                    - find: \n                        path: .item > a \n                        do: \n                        - parse:\n                            attr: href\n                        - walk:\n                            to: value\n                            do:\n                            - object_new: product\n                            - find: \n                                in: doc\n                                path: head \n                                do: \n                                - eval:\n                                    routine: js\n                                    body: &#039;(function (){var d = new Date(); return d.toISOString()})();&#039;\n                                - object_field_set:\n                                    object: product\n                                    field: date\n                                - static_get: url\n                                - object_field_set:\n                                    object: product\n                                    field: url\n                            - find: \n                                path: .tabbed li:nth-of-type(1) \n                                do: \n                                - parse\n                                - space_dedupe\n                                - trim\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: description\n                            - find: \n                                path: body \n                                do: \n                                - register_set: Calypso St. Barth\n                                - object_field_set:\n                                    object: product\n                                    field: brand\n                                - variable_get: cat1\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: categories\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat2\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: categories\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat3\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: categories\n                                        joinby: &quot;|&quot;\n                            - find: \n                                path: .product-name > h1 \n                                do: \n                                - parse\n                                - space_dedupe\n                                - trim\n                                - object_field_set:\n                                    object: product\n                                    field: name\n                            - find: \n                                path: img.cloudzoom-gallery, .image > img\n                                do: \n                                - parse:\n                                    attr: data-cloudzoom\n                                - eval:\n                                    routine: js\n                                    body: (function () {var e = {}; return JSON.stringify(e);})();\n                                - normalize:\n                                    routine: json2xml\n                                - to_block\n                                - find: \n                                    path: zoomImage \n                                    do: \n                                    - parse\n                                    - normalize:\n                                        routine: url\n                                    - object_field_set:\n                                        object: product\n                                        field: images\n                                        joinby: &quot;|&quot;\n                            - find: \n                                path: script:matches(var\\s*spConfig) \n                                do: \n                                - parse:\n                                    filter:\n                                        - Product\\.Config\\((.+)\\);\n                                - normalize:\n                                    routine: json2xml\n                                - to_block\n                                - find: \n                                    path: &#039;attributes > *:hasChild(code:matches(color)) > options > label&#039;\n                                    do: \n                                    - parse\n                                    - space_dedupe\n                                    - trim\n                                    - object_field_set:\n                                        object: product\n                                        field: variations\n                                        joinby: &quot;|&quot;\n                                - find: \n                                    path: body_safe > productid \n                                    do: \n                                    - parse\n                                    - space_dedupe\n                                    - trim\n                                    - object_field_set:\n                                        object: product\n                                        field: sku\n                                - find: \n                                    path: body_safe > baseprice\n                                    do: \n                                    - parse\n                                    - if:\n                                        match: (\\d)\n                                        do:\n                                        - object_field_set:\n                                            object: product\n                                            field: price\n                                            type: float\n                                        - register_set: USD\n                                        - object_field_set:\n                                            object: product\n                                            field: currency\n                            - object_save:\n                                name: product\n            - find: \n                path: ul > li > a \n                do: \n                - parse\n                - space_dedupe\n                - trim\n                - normalize:\n                    routine: lower\n                - variable_set: cat3\n                - parse:\n                    attr: href\n                - normalize:\n                    routine: url\n                - pool_clear: default\n                - parse:\n                    attr: href\n                - link_add\n                - walk:\n                    to: links\n                    do:\n                    - find: \n                        path: .paging  li > a:matches([Nn]ext) \n                        do: \n                        - parse:\n                            attr: href\n                        - link_add\n                    - find: \n                        path: .item > a \n                        do: \n                        - parse:\n                            attr: href\n                        - walk:\n                            to: value\n                            do:\n                            - object_new: product\n                            - find: \n                                in: doc\n                                path: head \n                                do: \n                                - eval:\n                                    routine: js\n                                    body: &#039;(function (){var d = new Date(); return d.toISOString()})();&#039;\n                                - object_field_set:\n                                    object: product\n                                    field: date\n                                - static_get: url\n                                - object_field_set:\n                                    object: product\n                                    field: url\n                            - find: \n                                path: .tabbed li:nth-of-type(1) \n                                do: \n                                - parse\n                                - space_dedupe\n                                - trim\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: description\n                            - find: \n                                path: body \n                                do: \n                                - register_set: Calypso St. Barth\n                                - object_field_set:\n                                    object: product\n                                    field: brand\n                                - variable_get: cat1\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: categories\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat2\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: categories\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat3\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: categories\n                                        joinby: &quot;|&quot;\n                            - find: \n                                path: .product-name > h1 \n                                do: \n                                - parse\n                                - space_dedupe\n                                - trim\n                                - object_field_set:\n                                    object: product\n                                    field: name\n\n                            - find: \n                                path: img.cloudzoom-gallery, .image > img\n                                do: \n                                - parse:\n                                    attr: data-cloudzoom\n                                - eval:\n                                    routine: js\n                                    body: (function () {var e = {}; return JSON.stringify(e);})();\n                                - normalize:\n                                    routine: json2xml\n                                - to_block\n                                - find: \n                                    path: zoomImage \n                                    do: \n                                    - parse\n                                    - normalize:\n                                        routine: url\n                                    - object_field_set:\n                                        object: product\n                                        field: images\n                                        joinby: &quot;|&quot;\n                            - find: \n                                path: script:matches(var\\s*spConfig) \n                                do: \n                                - parse:\n                                    filter:\n                                        - Product\\.Config\\((.+)\\);\n                                - normalize:\n                                    routine: json2xml\n                                - to_block\n                                - find: \n                                    path: &#039;attributes > *:hasChild(code:matches(color)) > options > label&#039;\n                                    do: \n                                    - parse\n                                    - space_dedupe\n                                    - trim\n                                    - object_field_set:\n                                        object: product\n                                        field: variations\n                                        joinby: &quot;|&quot;\n                                - find: \n                                    path: body_safe > productid \n                                    do: \n                                    - parse\n                                    - space_dedupe\n                                    - trim\n                                    - object_field_set:\n                                        object: product\n                                        field: sku\n                                - find: \n                                    path: body_safe > baseprice \n                                    do: \n                                    - parse\n                                    - if:\n                                        match: (\\d)\n                                        do:\n                                        - object_field_set:\n                                            object: product\n                                            field: price\n                                            type: float\n                                        - register_set: USD\n                                        - object_field_set:\n                                            object: product\n                                            field: currency\n                            - object_save:\n                                name: product<\/code><\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u043c \u0441 \u0441\u0430\u0439\u0442\u0430<\/h3>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0430 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0442\u043e\u0432\u0430\u0440\u0430\u043c\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON (\u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438). \u0414\u0430\u0442\u0430\u0441\u0435\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043a\u0430\u0447\u0430\u043d \u0438 \u043a\u0430\u043a CSV, XLSX, XML, \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.<\/p>\n<pre><code class=\"language-js\">[{\n    &quot;product&quot;: {\n        &quot;brand&quot;: &quot;Calypso St. Barth&quot;,\n        &quot;categories&quot;: &quot;new arrivals|clothing&quot;,\n        &quot;currency&quot;: &quot;USD&quot;,\n        &quot;date&quot;: &quot;2017-12-27T09:48:47.804Z&quot;,\n        &quot;description&quot;: &quot;By CALYPSO St. Barth - Welcome cooler weather with this lavish suede jacket. Supple soft and chic, this jacket flatters with a feminine fit and lengthy silhouette. Accented with a ruffled trim, this autumn favorite features hook and eye closure and welt pockets. Wear with anything from casual basics to night out ensembles, a special wardrobe addition!&quot;,\n        &quot;images&quot;: &quot;http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/d\/i\/diosajacket4_1.1502486097.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/d\/i\/diosajacket3_1.1502486097.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/d\/i\/diosajacket2_1.1502486098.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/d\/i\/diosajacket5_1.1502486098.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/d\/i\/diosajacket_1.1502486099.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/d\/i\/diosajacket.1502486099.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/d\/i\/diosajacket4_1.1502486097.jpg&quot;,\n        &quot;name&quot;: &quot;Diosa Suede Ruffle Jacket&quot;,\n        &quot;price&quot;: 1100,\n        &quot;sku&quot;: &quot;86060&quot;,\n        &quot;url&quot;: &quot;http:\/\/www.calypsostbarth.com\/new-arrivals\/clothing\/diosa-suede-ruffle-jacket&quot;,\n        &quot;variations&quot;: &quot;ATMN GLD&quot;\n    }\n}\n,{\n    &quot;product&quot;: {\n        &quot;brand&quot;: &quot;Calypso St. Barth&quot;,\n        &quot;categories&quot;: &quot;new arrivals|clothing&quot;,\n        &quot;currency&quot;: &quot;USD&quot;,\n        &quot;date&quot;: &quot;2017-12-27T09:48:48.837Z&quot;,\n        &quot;description&quot;: &quot;By CALYPSO St. Barth - Transcend into a new dimension of the open cardigan and welcome a versatile piece, essential to both dressy & casual outfitting. Composed of cozy alpaca wool, this sweater stands in for a lavish cold weather scarf, poncho or transitional jacket. Accented with ribbed detailing at the opening flaps, the cardigan\u0432\u0402\u2122s lengthy back center seam connects to inside out seam at waist for figure enhancing structure amidst an oversized silhouette. Wear it over dresses, pants or loungewear \u0432\u0402\u201c it\u0432\u0402\u2122s the perfect piece to carry you into the colder seasons.&quot;,\n        &quot;images&quot;: &quot;http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artatlaskosencocoon_20.1504818057.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artatlaskosencocoon_35.1504818057.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artatlaskosencocoon_12_ppn_.1504818058.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artatlaskosencocoon_28_ppn_.1504818059.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/s\/e\/serpinadress_11_1.1504818059.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artatlaskosencocoon_20.1504818057.jpg&quot;,\n        &quot;name&quot;: &quot;Kosen Wool Sweater Cocoon&quot;,\n        &quot;price&quot;: 395,\n        &quot;sku&quot;: &quot;86562&quot;,\n        &quot;url&quot;: &quot;http:\/\/www.calypsostbarth.com\/new-arrivals\/clothing\/kosen-wool-sweater-cocoon&quot;,\n        &quot;variations&quot;: &quot;LT GREY&quot;\n    }\n}\n,{\n    &quot;product&quot;: {\n        &quot;brand&quot;: &quot;Calypso St. Barth&quot;,\n        &quot;categories&quot;: &quot;new arrivals|clothing&quot;,\n        &quot;currency&quot;: &quot;USD&quot;,\n        &quot;date&quot;: &quot;2017-12-27T09:48:49.120Z&quot;,\n        &quot;description&quot;: &quot;By CALYPSO St. Barth - Casual dressing made easy, this lightweight cotton dress is comfortable, casual and oh so chic. A relaxed silhouette, this effortless mini is graced with ruffled flounce sleeves. Back yoke and square neckline are accented with shirring details that flow into a loose body. Finished with side seam pockets, this dress will your new \u0432\u0402\u045ago-to\u0432\u0402\u045c favorite this season.&quot;,\n        &quot;images&quot;: &quot;http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artemiadress4.1503599057.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artemiadress2.1503599058.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artemiadress3.1503599058.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artemiadressmain.1503599059.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artemiadress.1503599060.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/e\/m\/emptyname_13.1503599060.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/a\/r\/artemiadress4.1503599057.jpg&quot;,\n        &quot;name&quot;: &quot;Artemia Flounce Sleeve Dress&quot;,\n        &quot;price&quot;: 225,\n        &quot;sku&quot;: &quot;86442&quot;,\n        &quot;url&quot;: &quot;http:\/\/www.calypsostbarth.com\/new-arrivals\/clothing\/artemia-flounce-sleeve-dress&quot;,\n        &quot;variations&quot;: &quot;Black&quot;\n    }\n}\n,{\n    &quot;product&quot;: {\n        &quot;brand&quot;: &quot;Calypso St. Barth&quot;,\n        &quot;categories&quot;: &quot;new arrivals|clothing&quot;,\n        &quot;currency&quot;: &quot;USD&quot;,\n        &quot;date&quot;: &quot;2017-12-27T09:48:49.430Z&quot;,\n        &quot;description&quot;: &quot;By CALYPSO St. Barth - Boho chic meets outdoorsy elegance in this fleece poncho. Adorned with a tribal motif in earthy grey hues, it is finished with olive green crochet detailing along the lower trim, front zip and pockets as well as the shoulder sleeves. Gold zippers are enhanced with taupe leather trim for an added touch of bohemian charm. Luxuriously soft and cozy, this is the perfect outerwear piece to take you into the fall season&quot;,\n        &quot;images&quot;: &quot;http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/b\/a\/bahamutponcho_26.1504799605.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/b\/a\/bahamutponcho_46.1504799605.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/b\/a\/bahamutponcho_85.1504799606.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/b\/a\/bahamutponcho_79.1504799607.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/1\/1\/11_2_1640127.1504799608.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/w\/i\/winterlooks39684.1504799608.jpg|http:\/\/www.calypsostbarth.com\/media\/catalog\/product\/cache\/1\/image\/975x\/040ec09b1e35df139433887a97daa66f\/b\/a\/bahamutponcho_26.1504799605.jpg&quot;,\n        &quot;name&quot;: &quot;Bahamut Fleece Pullover Poncho&quot;,\n        &quot;price&quot;: 395,\n        &quot;sku&quot;: &quot;86563&quot;,\n        &quot;url&quot;: &quot;http:\/\/www.calypsostbarth.com\/new-arrivals\/clothing\/bahamut-fleece-pullover-poncho-86639&quot;,\n        &quot;variations&quot;: &quot;Grey CC&quot;\n    }\n}]\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u0432 1992, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Calypso St. Barth \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0438\u0437 \u0441\u043a\u0440\u043e\u043c\u043d\u043e\u0433\u043e \u0431\u0443\u0442\u0438\u043a\u0430 \u043a\u0443\u0440\u043e\u0440\u0442\u043d\u043e\u0439 \u043e\u0434\u0435\u0436\u0434\u044b \u0434\u043e \u0440\u043e\u0441\u043a\u043e\u0448\u043d\u043e\u0433\u043e, \u0443\u0437\u043d\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0432\u043e \u0432\u0441\u0435\u043c \u043c\u0438\u0440\u0435 \u0431\u0440\u0435\u043d\u0434\u0430. \u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u044f\u043c\u0438, \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u043e\u0439 \u0438 \u0438\u0441\u0441\u043a\u0443\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d, \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438 \u0436\u0435\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0436\u0435\u043d\u0449\u0438\u043d\u0430\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043e\u0432. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u043e \u0434\u0443\u0448\u0435 \u0441\u043c\u0435\u0441\u044c \u043b\u0435\u0433\u043a\u043e\u0439 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u0438 \u0438 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u0434\u0435\u0439, \u0432\u0430\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e [&hellip;]<\/p>","protected":false},"author":2,"featured_media":442,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,40],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-besplatnye-parsery","category-parser-magazina"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":4,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":913,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions\/913"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/media\/442"}],"wp:attachment":[{"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}