{"id":354,"date":"2017-12-30T11:21:32","date_gmt":"2017-12-30T11:21:32","guid":{"rendered":"https:\/\/www.diggernaut.ru\/blog\/?p=354"},"modified":"2019-01-11T16:02:22","modified_gmt":"2019-01-11T16:02:22","slug":"parser-tovarov-magazina-anthropologie-com","status":"publish","type":"post","link":"https:\/\/www.diggernaut.ru\/blog\/parser-tovarov-magazina-anthropologie-com\/","title":{"rendered":"\u041f\u0430\u0440\u0441\u0435\u0440 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043e\u043d\u043b\u0430\u0439\u043d \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 Anthropologie.com"},"content":{"rendered":"<p>Anthropologie \u2014 \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439 \u0440\u0435\u0442\u0435\u0439\u043b\u0435\u0440 \u043e\u0434\u0435\u0436\u0434\u044b. \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c 200 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430\u043c\u0438 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443 \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0430\u0441\u0441\u043e\u0440\u0442\u0438\u043c\u0435\u043d\u0442 \u043e\u0434\u0435\u0436\u0434\u044b, \u0443\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u0439, \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u0431\u0435\u043b\u044c\u044f, \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0434\u043b\u044f \u0434\u043e\u043c\u0430 \u0438 \u0434\u0435\u043a\u043e\u0440\u0430, \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0438 \u043f\u043e\u0434\u0430\u0440\u043a\u043e\u0432. \u0412 \u0430\u0432\u0433\u0443\u0441\u0442\u0435 1992 \u0433\u043e\u0434\u0430 \u0420\u0438\u0447\u0430\u0440\u0434\u0443 \u0425\u0435\u0439\u043d\u0443 \u043f\u0440\u0438\u0448\u043b\u0430 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438\u0434\u0435\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043e\u0434\u0435\u0436\u0434\u044b \u0434\u043b\u044f \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0436\u0435\u043d\u0449\u0438\u043d \u0432 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0435 30-45 \u043b\u0435\u0442, \u0442\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043c\u0430\u0433\u0430\u0437\u0438\u043d Anthropologie.  \u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0441\u0435\u0440 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043e\u043d\u043b\u0430\u0439\u043d \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u043e\u0432\u0430\u0440\u0430\u0445, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 anthropologie.com.<\/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> 50000<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> 50000<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> Small<\/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<p>\u0414\u043b\u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \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<p>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043f\u0430\u0440\u0441\u0435\u0440\u0430:<\/p>\n<pre class=\"language-yaml line-numbers\"><code class=\"language-yaml\">---\nconfig:\n    debug: 2\n    agent: Firefox\ndo:\n- walk:\n    to: https:\/\/www.anthropologie.com\n    do:\n    - find: \n        path: .c-main-navigation__li--level-1 \n        do: \n        - find: \n            path: span\n            slice: 0\n            do: \n            - parse\n            - space_dedupe\n            - trim\n            - normalize:\n                routine: lower\n            - variable_set: cat1\n        - find: \n            path: .c-main-navigation__li--level-2 \n            do: \n            - variable_clear: subcat\n            - find: \n                path: .c-main-navigation__a--level-2\n                do: \n                - parse\n                - space_dedupe\n                - trim\n                - normalize:\n                    routine: lower\n                - variable_set: cat2\n            - find: \n                path: .c-main-navigation__li--level-3 a \n                do: \n                - parse\n                - space_dedupe\n                - trim\n                - normalize:\n                    routine: lower\n                - variable_set: cat3\n                - variable_set:\n                    field: subcat\n                    value: 1\n                - parse:\n                    attr: href\n                - pool_clear: main\n                - link_add:\n                    pool: main\n                - walk:\n                    to: links\n                    pool: main\n                    do:\n                    - find: \n                        path: .js-pagination__arrow--next\n                        slice: 0\n                        do: \n                        - parse:\n                            attr: href\n                        - link_add:\n                            pool: main\n                    - find: \n                        path: .c-product-tile__image-link \n                        do: \n                        - parse:\n                            attr: href\n                            filter:\n                                - (.+)\\?\n                                - (.+)\n                        - normalize:\n                            routine: url\n                        - walk:\n                            to: value\n                            do:\n                            - find: \n                                path: body\n                                do: \n                                - object_new: product\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                                - register_set: Anthropologie\n                                - object_field_set:\n                                    object: product\n                                    field: brand\n                                - static_get: url\n                                - object_field_set:\n                                    object: product\n                                    field: url\n                                - find: \n                                    path: meta[property=&quot;product:price:amount&quot;] \n                                    do: \n                                    - parse:\n                                        attr: content\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                                - find: \n                                    path: .o-carousel__flex-wrapper > img.c-product-image \n                                    do: \n                                    - parse:\n                                        attr: src\n                                        filter:\n                                            - (.+)\\?\n                                            - (.+)\n                                    - normalize:\n                                        routine: url\n                                    - object_field_set:\n                                        object: product\n                                        field: images\n                                        joinby: &quot;|&quot;\n\n                                - find: \n                                    path: script:matches(window\\.productData) \n                                    do: \n                                    - parse:\n                                        filter:\n                                            - window.productData\\s*=\\s*\\&#039;\\s*(.+)\\s*\\&#039;\\s*;\n                                    - normalize:\n                                        routine: Base64ZLIBDecode\n                                    - normalize:\n                                        routine: json2xml\n                                    - to_block\n                                    - find: \n                                        path: body_safe \n                                        do: \n                                        - find: \n                                            path: primaryslice:hasChild(displaylabel:matches(Color)) \n                                            do: \n                                            - find: \n                                                path: sliceitems > displayname\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: sliceitems\n                                                do: \n                                                - variable_clear: iid\n\n                                                - find: \n                                                    path:  id\n                                                    slice: 0\n                                                    do: \n                                                    - parse\n                                                    - variable_set: iid\n                                                - find: \n                                                    path: images\n                                                    do: \n                                                    - parse\n                                                    - register_set: http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/_\n                                                    - object_field_set:\n                                                        object: product\n                                                        field: images\n                                                        joinby: &quot;|&quot;\n\n                                        - find: \n                                            path: product > stylenumber\n                                            slice: 0\n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: sku\n                                        - find: \n                                            path: product > product > brand\n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: brand\n                                        - find: \n                                            path: product > product > displayname\n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: name\n                                        - find: \n                                            path: product > product > longdescription \n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: description\n                                - variable_get: cat1\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: category\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat2\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: category\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat3\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: category\n                                        joinby: &quot;|&quot;\n                                - object_save:\n                                    name: product\n            - variable_get: subcat\n            - if:\n                match: (1)\n                else:\n                - find: \n                    path: .c-main-navigation__a--level-2\n                    do: \n                    - parse:\n                        attr: href\n                    - pool_clear: main\n                    - link_add:\n                        pool: main\n                    - walk:\n                        to: links\n                        pool: main\n                        do:\n                        - find: \n                            path: .js-pagination__arrow--next\n                            slice: 0\n                            do: \n                            - parse:\n                                attr: href\n                            - link_add:\n                                pool: main\n                        - find: \n                            path: .c-product-tile__image-link \n                            do: \n                            - parse:\n                                attr: href\n                                filter:\n                                    - (.+)\\?\n                                    - (.+)\n                            - normalize:\n                                routine: url\n                            - walk:\n                                to: value\n                                do:\n                                - find: \n                                    path: body\n                                    do: \n                                - object_new: product\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                                - register_set: Anthropologie\n                                - object_field_set:\n                                    object: product\n                                    field: brand\n                                - static_get: url\n                                - object_field_set:\n                                    object: product\n                                    field: url\n                                - find: \n                                    path: meta[property=&quot;product:price:amount&quot;] \n                                    do: \n                                    - parse:\n                                        attr: content\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                                - find: \n                                    path: .o-carousel__flex-wrapper > img.c-product-image \n                                    do: \n                                    - parse:\n                                        attr: src\n                                        filter:\n                                            - (.+)\\?\n                                            - (.+)\n                                    - normalize:\n                                        routine: url\n                                    - object_field_set:\n                                        object: product\n                                        field: images\n                                        joinby: &quot;|&quot;\n\n                                - find: \n                                    path: script:matches(window\\.productData) \n                                    do: \n                                    - parse:\n                                        filter:\n                                            - window.productData\\s*=\\s*\\&#039;\\s*(.+)\\s*\\&#039;\\s*;\n                                    - normalize:\n                                        routine: Base64ZLIBDecode\n                                    - normalize:\n                                        routine: json2xml\n                                    - to_block\n                                    - find: \n                                        path: body_safe \n                                        do: \n                                        - find: \n                                            path: primaryslice:hasChild(displaylabel:matches(Color)) \n                                            do: \n                                            - find: \n                                                path: sliceitems > displayname\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: sliceitems\n                                                do: \n                                                - variable_clear: iid\n\n                                                - find: \n                                                    path:  id\n                                                    slice: 0\n                                                    do: \n                                                    - parse\n                                                    - variable_set: iid\n                                                - find: \n                                                    path: images\n                                                    do: \n                                                    - parse\n                                                    - register_set: http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/_\n                                                    - object_field_set:\n                                                        object: product\n                                                        field: images\n                                                        joinby: &quot;|&quot;\n\n                                        - find: \n                                            path: product > stylenumber\n                                            slice: 0\n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: sku\n                                        - find: \n                                            path: product > product > brand\n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: brand\n                                        - find: \n                                            path: product > product > displayname\n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: name\n                                        - find: \n                                            path: product > product > longdescription \n                                            do: \n                                            - parse\n                                            - space_dedupe\n                                            - trim\n                                            - object_field_set:\n                                                object: product\n                                                field: description\n                                - variable_get: cat1\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: category\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat2\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: category\n                                        joinby: &quot;|&quot;\n                                - variable_get: cat3\n                                - if:\n                                    match: (\\S)\n                                    do:\n                                    - object_field_set:\n                                        object: product\n                                        field: category\n                                        joinby: &quot;|&quot;\n                                - object_save:\n                                    name: product<\/code><\/pre>\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;Illume&quot;,\n        &quot;category&quot;: &quot;gifts|features|the gift guide&quot;,\n        &quot;date&quot;: &quot;2017-12-05T21:15:58.241Z&quot;,\n        &quot;description&quot;: &quot;New from the fragrance masters at Illume, Anatomy of a Fragrance bath and beauty products are sophisticated, lighthearted luxuries. Each is crafted in Minnesota, where Illume combines their signature scents with beautiful packaging designed in-house. From lavish hand creams to triple-milled soaps to nature-inspired perfumes, their line is ready-made for gifting and indulging. **Honey Rose**: a warm, romantic scent with notes of lily of the valley, sandalwood and bergamot **Orchid Vanille**: a bright, fresh combination of orange blossom, jasmine, black currant and praline **Wildflower Bergamot**: A zesty blend of bergamot, lemon and mango layered with cedar and sandalwood&quot;,\n        &quot;images&quot;: &quot;https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/44448363_040_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/44448363_040_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/44448363_070_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/44448363_065_b&quot;,\n        &quot;name&quot;: &quot;Anatomy of a Fragrance Gift Set&quot;,\n        &quot;sku&quot;: &quot;44448363&quot;,\n        &quot;url&quot;: &quot;https:\/\/www.anthropologie.com\/shop\/anatomy-of-a-fragrance-gift-set&quot;,\n        &quot;variations&quot;: &quot;Wildflower Bergamot|Orchid Vanille|Honey Rose&quot;\n    }\n}\n,{\n    &quot;product&quot;: {\n        &quot;brand&quot;: &quot;Capri Blue&quot;,\n        &quot;category&quot;: &quot;gifts|features|the gift guide&quot;,\n        &quot;date&quot;: &quot;2017-12-05T21:15:59.713Z&quot;,\n        &quot;description&quot;: &quot;Capri Blue&#039;s iconic vessels and fragrances - proudly designed and poured in Mississippi - are a long-standing favorite at Anthropologie. The line pairs striking visuals with intoxicating scents to create beautifully aromatic products like soy-blended candles and vegan-formulated beauty care. **Volcano**: tropical fruits, sugared oranges, lemons and limes, redolent with lightly exotic mountain greens **Coastal**: notes of pineapple, verbena and coconut, accented by sparkling lemon, bergamot and grapefruit **Fir & Firewood**: a fruity, green aroma of apple, clove, fir, pine needle, white birch, cedar, vetiver and musk **Japanese Quince & Cedar**: aromatic cedar wood is embellished with sun-ripened cassis, sugared quince, accents of red currant and a splash of sparkling pomelo **Gardenia & Fig**: bright greens and fresh peach mingle with gardenia, rose, ylang ylang and coconut over a base of light musk **Cinnamon Toddy**: a mouthwatering medley of ripe apple, warm cinnamon, golden clove and grated nutmeg topped with notes of honey and maple **Spiced Cider**: nutmeg, clove and cinnamon are layered over fresh apple and juicy orange notes **Lagoon**: top notes of freesia, incense and tamarind blend over a musky base of cashmere, wood and vetiver **Grapefruit Neroli**: sun-kissed grapefruit, quince and tangerine over neroli, vanilla, orchid and currant&quot;,\n        &quot;images&quot;: &quot;https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_033_b|https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_033_b10|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_033_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_033_b10|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_090_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_090_b10|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_090_b15|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_090_b16|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_049_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_026_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_098_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_040_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_007_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/19851559_007_b2&quot;,\n        &quot;name&quot;: &quot;Capri Blue Iridescent Jar Candle&quot;,\n        &quot;sku&quot;: &quot;19851559&quot;,\n        &quot;url&quot;: &quot;https:\/\/www.anthropologie.com\/shop\/capri-blue-iridescent-jar-candle8&quot;,\n        &quot;variations&quot;: &quot;Fir and Firewood|Spiced Cider|Volcano|Spiced Cider|Fir and Firewood|Volcano|Volcano&quot;\n    }\n}\n,{\n    &quot;product&quot;: {\n        &quot;brand&quot;: &quot;Anthropologie&quot;,\n        &quot;category&quot;: &quot;gifts|features|the gift guide&quot;,\n        &quot;date&quot;: &quot;2017-12-05T21:16:00.340Z&quot;,\n        &quot;images&quot;: &quot;https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b3|https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b|https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b2|https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b14|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b3|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_001_b14|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_074_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_074_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_074_b3|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_074_b14|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_010_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_010_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_010_b15|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_030_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_030_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_030_b15|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_040_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_040_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_040_b3|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_040_b14|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_065_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_065_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_065_b3|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_051_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_051_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_051_b10|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_066_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_066_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/39336862_066_b10&quot;,\n        &quot;name&quot;: &quot;Slivered Geode Coaster&quot;,\n        &quot;sku&quot;: &quot;39336862&quot;,\n        &quot;url&quot;: &quot;https:\/\/www.anthropologie.com\/shop\/geode-coaster&quot;,\n        &quot;variations&quot;: &quot;Black Quartz|Dyed Citron|White Quartz|Adventurian|Dyed Blue|Dyed Magenta|Amethyst|Rose quartz&quot;\n    }\n}\n,{\n    &quot;product&quot;: {\n        &quot;brand&quot;: &quot;Floreat&quot;,\n        &quot;category&quot;: &quot;gifts|features|the gift guide&quot;,\n        &quot;date&quot;: &quot;2017-12-05T21:16:01.211Z&quot;,\n        &quot;images&quot;: &quot;https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b|https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b2|https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b3|https:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b4|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b3|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_000_b4|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_049_b|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_049_b2|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_049_b3|http:\/\/images.anthropologie.com\/is\/image\/Anthropologie\/43663541_049_b4&quot;,\n        &quot;name&quot;: &quot;Floreat Printed Sleep Pants&quot;,\n        &quot;sku&quot;: &quot;43663541&quot;,\n        &quot;url&quot;: &quot;https:\/\/www.anthropologie.com\/shop\/floreat-printed-sleep-pants&quot;,\n        &quot;variations&quot;: &quot;ASSORTED|BLUE MOTIF&quot;\n    }\n}]\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Anthropologie \u2014 \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439 \u0440\u0435\u0442\u0435\u0439\u043b\u0435\u0440 \u043e\u0434\u0435\u0436\u0434\u044b. \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c 200 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430\u043c\u0438 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443 \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0430\u0441\u0441\u043e\u0440\u0442\u0438\u043c\u0435\u043d\u0442 \u043e\u0434\u0435\u0436\u0434\u044b, \u0443\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u0439, \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u0431\u0435\u043b\u044c\u044f, \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0434\u043b\u044f \u0434\u043e\u043c\u0430 \u0438 \u0434\u0435\u043a\u043e\u0440\u0430, \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0438 \u043f\u043e\u0434\u0430\u0440\u043a\u043e\u0432. \u0412 \u0430\u0432\u0433\u0443\u0441\u0442\u0435 1992 \u0433\u043e\u0434\u0430 \u0420\u0438\u0447\u0430\u0440\u0434\u0443 \u0425\u0435\u0439\u043d\u0443 \u043f\u0440\u0438\u0448\u043b\u0430 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438\u0434\u0435\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043e\u0434\u0435\u0436\u0434\u044b \u0434\u043b\u044f \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0436\u0435\u043d\u0449\u0438\u043d \u0432 [&hellip;]<\/p>","protected":false},"author":2,"featured_media":356,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,40],"tags":[],"class_list":["post-354","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\/354","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=354"}],"version-history":[{"count":7,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":901,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/posts\/354\/revisions\/901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/media\/356"}],"wp:attachment":[{"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.diggernaut.ru\/blog\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}