{"id":265443,"date":"2015-09-11T14:02:02","date_gmt":"2015-09-11T10:02:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=265443"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=265443","title":{"rendered":"\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043c\u0443\u0437\u044b\u043a\u0438 \u0438\u0437 VK, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f VK api \u0438 Python3"},"content":{"rendered":"<p>       \u0415\u0449\u0451 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0438\u044e\u043d\u044f, \u0430 \u0442\u0443\u0442 \u0443\u0436\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f. \u041e\u0441\u0435\u043d\u044c \u043d\u0430 \u0434\u0432\u043e\u0440\u0435.<\/p>\n<p>  \u0414\u0430, \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0442\u043e\u0436\u0435 \u0442\u0430\u043a \u043e\u0442\u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f, \u0430 \u043e\u0447\u043d\u0443\u043b\u0441\u044f \u2014 Mail \u043f\u043e\u0433\u043b\u043e\u0442\u0438\u043b VK. \u0418 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c: \u0432\u0438\u0434\u0435\u043e \u0431\u0435\u0437 \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u043d\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c, \u043c\u0443\u0437\u044b\u043a\u0443 \u043d\u0435 \u043f\u043e\u0441\u043b\u0443\u0448\u0430\u0435\u0448\u044c \u2014 \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u043b\u0438 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0438. \u0425\u043e\u0434\u044f\u0442 \u0441\u043b\u0443\u0445\u0438, \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u043f\u0440\u0435\u0442\u044f\u0442. \u041f\u043e\u0447\u0443\u044f\u043b \u043d\u0435\u043b\u0430\u0434\u043d\u043e\u0435. \u0410 \u0442\u0443\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u0430\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0433\u043e\u0434\u0430. \u0412\u043e\u0442 \u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0430 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043c\u043d\u0435 \u043d\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u0430\u043f\u0430\u0441\u044b? \u0417\u0430\u043a\u043e\u043d\u0441\u0435\u0440\u0432\u0438\u0440\u0443\u044e \u0441\u0432\u043e\u044e \u043c\u0443\u0437\u044b\u043a\u0443 \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043a\u043e\u043c\u043f\u0435, \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a \u2014 \u0441\u043b\u0430\u0449\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0432\u0430\u0440\u0435\u043d\u044c\u044f \u0431\u0443\u0434\u0435\u0442! \u0410 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043c\u043d\u0435 \u0432 \u044d\u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0435 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u0441\u0430\u043c \u0412\u041a, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u2014 \u0435\u0433\u043e api. \u0410 \u0435\u0449\u0451 \u0442\u0440\u0435\u0442\u0438\u0439 python, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 urllib \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0423 api vk \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u044f\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041e\u0442\u0432\u0435\u0442 \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json, \u0438 \u0432 \u043d\u0451\u043c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0441\u043d\u0435, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442\u0441\u044f. \u0410 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0441\u043d\u0438 \u0431\u0443\u0434\u0435\u0442 url-\u0430\u0434\u0440\u0435\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u043d\u0430 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0412\u041a. \u041a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 api \u043d\u0443\u0436\u0435\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 (\u0434\u0430\u043b\u0435\u0435 \u2014 access_token), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 vk \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c. \u041a\u0430\u043a \u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u2014 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435.<\/p>\n<p>  \u041f\u043e\u043c\u043d\u0438\u0442\u0435 \u043e\u043a\u043e\u0448\u043a\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b? \u041d\u0430\u0436\u0438\u043c\u0430\u044f \u00ab\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c\u00bb, \u0432\u044b \u0434\u0430\u0435\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u043f\u0440\u0430\u0432\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c access_token \u043d\u0430 \u0432\u0430\u0448\u0435 \u0438\u043c\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. <\/p>\n<p>  \u0427\u0442\u043e \u0436, \u043d\u0430\u0447\u043d\u0451\u043c?<\/p>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &quot;<a href=\"http:\/\/vk.com\/dev\">\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c<\/a>&quot; \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/82HrFfZ.png\" alt=\"image\"\/><\/p>\n<p>  \u0412\u0432\u043e\u0434\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0438\u043f: standalone-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/LUVvs1d.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0441\u043c\u0441, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0432\u0430\u0448 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/igHkxMU.png\" alt=\"image\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u043f\u0440\u043e\u0448\u043b\u0438 \u0432\u0441\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c id \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f access_token-a. \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0442\u0443 \u0447\u0430\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0445 <a href=\"http:\/\/vk.com\/dev\/auth_mobile\">standalone-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/Ua7KUHz.png\" alt=\"image\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/teSM5si.png\" alt=\"image\"\/><\/p>\n<p>  <i>\u0412\u0430\u0436\u043d\u043e<\/i><br \/>  redirect_uri \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u0435\u043d <code>https:\/\/oauth.vk.com\/blank.html<\/code>, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u0434\u0440\u0435\u0441 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 javascript-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438, \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 scope \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 audio. \u041e\u0431\u044b\u0447\u043d\u043e access_token \u0432\u044b\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0440\u0435\u043c\u044f. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0431\u0435\u0441\u0441\u0440\u043e\u0447\u043d\u043e, \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 scope \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 offline.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f:  <\/p>\n<ul>\n<li>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e. <\/li>\n<li>\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0430\u043c\u043f\u0435\u0440\u0441\u0430\u043d\u0434 (&#038;)<\/li>\n<\/ul>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 scope \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 <a href=\"http:\/\/vk.com\/dev\/permissions\">\u0441\u0441\u044b\u043b\u043a\u0443<\/a>.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043c\u044b \u0432\u0431\u0438\u0432\u0430\u0435\u043c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u0438\u0435:  <\/p>\n<blockquote>\n<pre>https:\/\/oauth.vk.com\/authorize\/client_id=YOUR_CLIENT_ID&redirect_uri=https:\/\/oauth.vk.com\/blank.html&display=page&response_type=token<\/pre>\n<\/blockquote>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u044d\u0442\u043e \u043e\u043a\u043e\u0448\u043a\u043e. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/zuUuONN.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>https:\/\/oauth.vk.com\/blank.html<\/code>. \u0412 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <code>access_token= YOUR_ACCESS_TOKEN<\/code>. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0435\u0433\u043e \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c. \u0418\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a api.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c api audio.get. \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432\u044b\u0448\u0435, \u043c\u0435\u0442\u043e\u0434 audio.get \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u043c \u043e\u0442\u0432\u0435\u0442 \u0432 json-\u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 json-\u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434.  <\/p>\n<pre> { \t&quot;response&quot;: \t\t[712, \t\t\t{ \t\t\t&quot;aid&quot;:393825624, \t\t\t&quot;owner_id&quot;:59223044, \t\t\t&quot;artist&quot;:&quot;Saint Asonia&quot;, \t\t\t&quot;title&quot;:&quot;Blow Me Wide Open&quot;, \t\t\t&quot;duration&quot;:224, \t\t\t&quot;url&quot;:&quot;http:\\\/\\\/cs9-11v4.vk.me\\\/p13\\\/39a25fcb2c8ce0.mp3?extra=hLsHqDEzrwLWudHCpV1RRIAEHmwymoX6DyWikmJFCpjhdS_xrATqtAtC9trWSyyd1asFakko8BvXCTkjfQKEPlqdVFL6&quot;, \t\t\t&quot;lyrics_id&quot;:&quot;274446714&quot;, \t\t\t&quot;genre&quot;:18 \t\t\t}, \t\t\t{&quot;aid&quot;:392782493, \t\t\t&quot;owner_id&quot;:59223044, \t\t\t&quot;artist&quot;:&quot;Kongos&quot;, \t\t\t&quot;title&quot;:&quot;I'm Only Joking&quot;, \t\t\t&quot;duration&quot;:225, \t\t\t&quot;url&quot;:&quot;http:\\\/\\\/cs9-12v4.vk.me\\\/p15\\\/b4d77a6a010d08.mp3?extra=7PQDPyENs9k029CQcO7hVtYV3AHQx90-ZUxKYKhE3ztr5BY9esrUeLaF-KG-ub1_svELz0E1M5pd6zca3BK12J4EwrnI&quot;, \t\t\t&quot;lyrics_id&quot;:&quot;184734619&quot; \t\t\t,&quot;genre&quot;:21 \t\t\t} \t\t] } <\/pre>\n<p>  \u0418\u0442\u0430\u043a, \u043a\u0430\u043a \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435, \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0441 \u043a\u043b\u044e\u0447\u043e\u043c response, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u0435\u0441\u0435\u043d.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0441\u0435\u043d \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0432\u0441\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044f\u043c\u0438, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u043c\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u0435\u0441\u043d\u044f\u0445. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c request.urlopen \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 urllib, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u0435\u0441\u044f \u043f\u043e url-\u0430\u0434\u0440\u0435\u0441\u0443 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435.<\/p>\n<blockquote><p>from urllib.request import urlopen  <\/p><\/blockquote>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f urlopen \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 url-\u0430\u0434\u0440\u0435\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d\u0430 \u043e\u0442\u043a\u0440\u043e\u0435\u0442. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u044d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 audio.get:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/sBYzONU.png\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043c\u0435\u0442\u043e\u0434\u0430\u043c api vk \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u0440\u0433\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <\/p>\n<pre>https:\/\/api.vk.com\/method\/METHOD_NAME?<\/pre>\n<p>, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u0442\u0443\u0434\u0430 \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u0443 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0442\u043e\u0442 \u0443\u0440\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c:  <\/p>\n<blockquote><p>address = &#8216;https:\/\/api.vk.com\/method\/audio.get?owner_id=YOUR_OWNER_ID&#038;access_token=YOUR_ACCESS_TOKEN&#8217;<\/p><\/blockquote>\n<p>  \u0438 \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0435\u0433\u043e:<\/p>\n<blockquote><p>data = urlopen(address)  <\/p><\/blockquote>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438, \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0435\u0440\u0430\u0441\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f. \u0410 \u0442\u0430\u043a, \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u0441\u0451 \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442\u043e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 json, \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0451\u043c, \u043a\u0430\u043a \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c Python, \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 json.<\/p>\n<blockquote><p>import json  <\/p><\/blockquote>\n<p>  \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c loads(), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0443\u044e \u043e\u0431\u044a\u0435\u043a\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 json, \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 \u044f\u0437\u044b\u043a\u0430 Python:<\/p>\n<blockquote><p>decoded_response = data.read().decode()<br \/>  final_data = json.loads(decoded_response)  <\/p><\/blockquote>\n<p>  \u0423\u0440\u0430! \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0434\u0430\u043d\u043d\u044b\u043c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u043c\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 final_data. \u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u0441\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u0435\u0441\u043d\u044f\u0445:<\/p>\n<blockquote><p>songs = final_data[&#8216;response&#8217;][1:]  <\/p><\/blockquote>\n<p>  \u042d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430 response \u0441 1 \u043f\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0441\u043d\u0435\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.   <\/p>\n<blockquote>\n<pre> for song in songs: \tsong_artist = song['artist'] \tsong_title = song['title'] \tsong_url = song['url']<\/pre>\n<p>  <\/p><\/blockquote>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0445\u0440\u0430\u043d\u044f\u0449\u0443\u044e\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 song_url:<\/p>\n<blockquote><p>cached_song = urlopen(song_url).read()  <\/p><\/blockquote>\n<p>  \u0418 \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0435\u0451 \u0432 \u0444\u0430\u0439\u043b. \u0413\u0434\u0435 \u0436\u0435 \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c, \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0432\u044b? \u0410 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 os. \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0432\u043d\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0446\u0438\u043a\u043b\u0430:  <\/p>\n<blockquote><p>import os  <\/p><\/blockquote>\n<p>  \u0418 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0443 music \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0421 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439<\/p>\n<blockquote><p> os.mkdir(&#8216;C:\/\/Music&#8217;)  <\/p><\/blockquote>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0430\u043f\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u0435\u0441\u043d\u0438.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448\u0438 \u043f\u0435\u0441\u043d\u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0441\u044c \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0440\u0442\u0438\u0441\u0442\u0430. \u0410 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u043d\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443, \u0438\u043b\u0438 \u043d\u0435\u0442, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 os.listdir, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438:  <\/p>\n<blockquote>\n<pre> if song_artist not in os.listdir('C:\/\/Music'): \tos.mkdir('C:\/\/Music\/%s' %(song_artist))<\/pre>\n<\/blockquote>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u0443\u0434\u0430 \u043d\u0430\u0448\u0443 \u043f\u0435\u0441\u043d\u044e.  <\/p>\n<blockquote><p>filename = &#8216;C:\/\/Music\/%s\/%s.mp3&#8217; %(song_artist, song_title)<br \/>  file = open(filename, &#8216;wb&#8217;)<br \/>  file.write(cached_song)<br \/>  file.close()  <\/p><\/blockquote>\n<p>  \u0423\u0440\u0430. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u043a\u043e\u0434 \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u00ab\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u00bb. \u041d\u0443, \u0430 \u0435\u0449\u0451, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u0432\u0435\u0434\u044c \u043f\u0435\u0441\u043d\u044f\u043c \u043d\u0443\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u043b\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre> from urllib.request import urlopen import json import os os.mkdir('C:\/\/Music')  address = 'https:\/\/api.vk.com\/method\/audio.get?owner_id=MY_ID&access_token=MY_TOKEN' data = urlopen(address) decoded_response = data.read().decode() final_data = json.loads(decoded_response) songs = final_data['response'][1:] for song in songs:        song_artist = song['artist']        song_title = song['title']        song_url = song['url']        cached_song = urlopen(song_url).read()        if song_artist not in os.listdir('C:\/\/Music'):               os.mkdir('C:\/\/Music\/%s' %(song_artist))        filename = 'C:\/\/Music\/%s\/%s.mp3' %(song_artist, song_title)        file = open(filename, 'wb')        file.write(cached_song)        file.close() <\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0439\u0442\u0435\u0441\u044c \u043c\u0443\u0437\u044b\u043a\u043e\u0439 \u0438 \u043b\u044e\u0431\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0414\u043e \u0441\u0432\u044f\u0437\u0438!       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/266671\/\"> http:\/\/habrahabr.ru\/post\/266671\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0415\u0449\u0451 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0438\u044e\u043d\u044f, \u0430 \u0442\u0443\u0442 \u0443\u0436\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f. \u041e\u0441\u0435\u043d\u044c \u043d\u0430 \u0434\u0432\u043e\u0440\u0435.<\/p>\n<p>  \u0414\u0430, \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0442\u043e\u0436\u0435 \u0442\u0430\u043a \u043e\u0442\u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f, \u0430 \u043e\u0447\u043d\u0443\u043b\u0441\u044f \u2014 Mail \u043f\u043e\u0433\u043b\u043e\u0442\u0438\u043b VK. \u0418 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c: \u0432\u0438\u0434\u0435\u043e \u0431\u0435\u0437 \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u043d\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c, \u043c\u0443\u0437\u044b\u043a\u0443 \u043d\u0435 \u043f\u043e\u0441\u043b\u0443\u0448\u0430\u0435\u0448\u044c \u2014 \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u043b\u0438 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0438. \u0425\u043e\u0434\u044f\u0442 \u0441\u043b\u0443\u0445\u0438, \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u043f\u0440\u0435\u0442\u044f\u0442. \u041f\u043e\u0447\u0443\u044f\u043b \u043d\u0435\u043b\u0430\u0434\u043d\u043e\u0435. \u0410 \u0442\u0443\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u0430\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0433\u043e\u0434\u0430. \u0412\u043e\u0442 \u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0430 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043c\u043d\u0435 \u043d\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u0430\u043f\u0430\u0441\u044b? \u0417\u0430\u043a\u043e\u043d\u0441\u0435\u0440\u0432\u0438\u0440\u0443\u044e \u0441\u0432\u043e\u044e \u043c\u0443\u0437\u044b\u043a\u0443 \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043a\u043e\u043c\u043f\u0435, \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a \u2014 \u0441\u043b\u0430\u0449\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0432\u0430\u0440\u0435\u043d\u044c\u044f \u0431\u0443\u0434\u0435\u0442! \u0410 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043c\u043d\u0435 \u0432 \u044d\u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0435 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u0441\u0430\u043c \u0412\u041a, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u2014 \u0435\u0433\u043e api. \u0410 \u0435\u0449\u0451 \u0442\u0440\u0435\u0442\u0438\u0439 python, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 urllib \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-265443","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265443"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265443\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}