{"id":184224,"date":"2013-06-21T23:42:03","date_gmt":"2013-06-21T19:42:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=184224"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=184224","title":{"rendered":"<span class=\"post_title\">vk.com \u2014 \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0441\u0442\u0435\u043d\u044b<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043f\u043b\u043e\u0445\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u043c\u0438 \u0440\u0435\u043f\u043e\u0441\u0442 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u044b\u043c, \u0435\u0441\u043b\u0438 \u0430\u0432\u0442\u043e\u0440 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0435\u0435 \u0443\u0434\u0430\u043b\u0438\u0442. \u041d\u0435\u0434\u0430\u0432\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0432 vk \u0441\u0442\u0430\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043a\u0430\u043f\u043b\u0435\u0439, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441 <s>\u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u044f\u0434\u0435\u0440\u043d\u043e\u0439 \u0432\u043e\u0439\u043d\u044b<\/s>. \u041f\u043e\u0438\u0441\u043a\u0430\u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043d\u0438\u0447\u0435\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u043e \u043c\u0435\u043d\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python.<a name=\"habracut\"><\/a><\/p>\n<h4>\u0426\u0435\u043b\u0438<\/h4>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e: \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u0441\u0442\u0435\u043d\u0443. \u0421\u043e \u0441\u0442\u0435\u043d\u044b \u043d\u0443\u0436\u043d\u043e \u0443\u0442\u0430\u0449\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a \u043f\u043e\u0441\u0442\u0430\u043c, \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0442\u043e\u0436\u0435 \u043b\u0438\u0448\u043d\u0438\u043c\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442. \u041d\u0443\u0436\u043d\u043e \u044d\u0442\u043e \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0437\u0430\u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0441\u044c \u0432\u0441\u0435 \u043f\u043e\u0441\u0442\u044b \u0441 \u043c\u0443\u0437\u044b\u043a\u043e\u0439 \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u0433\u0434\u0435 \u0434\u0440\u0443\u0437\u044c\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u0442\u0440\u0435\u043a\u0438 <s>\u0438\u043b\u0438 \u043a\u043e\u0442\u0438\u043a\u043e\u0432<\/s>. \u0421\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0432 \u043c\u043e\u0438\u0445 \u0446\u0435\u043b\u044f\u0445 \u043d\u0435 \u0431\u044b\u043b\u043e \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u044d\u043a\u0430\u043f\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 (\u043b\u0430\u0439\u043a\u0438, \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435).<\/p>\n<h4>\u0417\u0430 \u0434\u0435\u043b\u043e!<\/h4>\n<p>  \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0436\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/143972\/\">\u043d\u0435 \u0440\u0430\u0437<\/a> <a href=\"http:\/\/habrahabr.ru\/post\/183546\/\">\u043e\u043f\u0438\u0441\u0430\u043d<\/a> \u043d\u0430 \u0445\u0430\u0431\u0440\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0441\u0442\u0430\u043d\u0443, \u043e\u043f\u0438\u0448\u0443 \u0448\u0430\u0433\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u043a\u0440\u0430\u0442\u0446\u0435, \u0430 \u0435\u0449\u0435 \u0441\u043a\u0430\u0436\u0443 \u043f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e \u043f\u0440\u043e\u043b\u0435\u043c\u0430\u0445. \u0427\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u0431\u044b\u043b\u0430 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c\u0438, \u0432 \u043a\u043e\u043d\u0446\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 github.<\/p>\n<h5>\u0421\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0445\u043e\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/h5>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u0435 <a href=\"https:\/\/vk.com\/editapp?act=create\">id \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a>. \u0412\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0442\u0438\u043f \u0431\u044b\u043b <b>standalone<\/b>, \u0438\u043d\u0430\u0447\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b vk api \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.<\/li>\n<li>\u0415\u0449\u0435 \u043d\u0443\u0436\u0435\u043d id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c. \u0421\u0432\u043e\u0439 \u043d\u0430\u0439\u0442\u0438 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/vk.com\/settings\">\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/a><\/li>\n<li>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435, access token. \u041f\u0440\u044f\u043c\u043e\u0433\u043e \u043d\u0435\u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u043d\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u043e \u043f\u0440\u043e\u0449\u0435 \u2014 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c url. \u0417\u0430 \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f auth():<br \/> \n<pre><code class=\"python\">    url = &quot;https:\/\/oauth.vk.com\/oauth\/authorize?&quot; + \\           &quot;redirect_uri=https:\/\/oauth.vk.com\/blank.html&response_type=token&&quot; + \\           &quot;client_id=%s&scope=%s&display=wap&quot; % (args.app_id, &quot;,&quot;.join(args.access_rights))      print(&quot;Please open this url:\\n\\n\\t{}\\n&quot;.format(url))     raw_url = raw_input(&quot;Grant access to your acc and copy resulting URL here: &quot;)     res = re.search('access_token=([0-9A-Fa-f]+)', raw_url, re.I) <\/code><\/pre>\n<p>  <\/li>\n<li>\u0423 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 vk api \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435: \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u043f\u044f\u0442\u0438 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443. \u0415\u0441\u043b\u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e, \u043e\u043d \u043e\u0442\u0432\u0435\u0442\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u043e\u0439. \u042d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e: \u043f\u043e \u043a\u043e\u0434\u0443 \u043e\u0448\u0438\u0431\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e, \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441.<br \/> \n<pre><code>        if result[u'error'][u'error_code'] == 6:  # too many requests                 logging.debug(&quot;Too many requests per second, sleeping..&quot;)                 sleep(1)                 continue <\/code><\/pre>\n<p>  <\/li>\n<li>\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 vk \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043a\u0430\u043f\u0442\u0447\u0443, \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044f, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u2014 \u0431\u043e\u0442. \u0412 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u0435\u0442. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043b\u0441\u044f, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u0440\u0430\u0437\u0433\u0430\u0434\u0430\u0442\u044c \u043a\u0430\u043f\u0442\u0447\u0443 \u0438 \u0432\u0431\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442. \u042d\u0442\u043e \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441 \u043d\u0435\u0437\u0430\u043c\u044b\u0441\u043b\u043e\u0432\u0430\u0442\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c captcha():<br \/> \n<pre><code>    print(&quot;They want you to solve CAPTCHA. Please open this URL, and type here a captcha solution:&quot;)     print(&quot;\\n\\t{}\\n&quot;.format(data[u'error'][u'captcha_img']))     solution = raw_input(&quot;Solution = &quot;).strip()     return data[u'error'][u'captcha_sid'], solution <\/code><\/pre>\n<p>  <\/li>\n<li>\u0421\u0441\u044b\u043b\u043a\u0438, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432\u0440\u043e\u0434\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043b\u0430\u0439\u043a\u043e\u0432 \u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 JSON \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u044b, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439.<\/li>\n<li>\u041a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u044f\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d \u0442\u0435\u043a\u0441\u0442 \u043f\u0435\u0441\u043d\u0438, \u0447\u0442\u043e \u0442\u043e\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c.<\/li>\n<li>\u0418\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u0413\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e\u00bb \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u043c\u0438\u043d\u0438-\u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434:<br \/> \n<pre><code class=\"python\">result =  unicode(re.sub('[^+=\\-()$!#%&,.\\w\\s]', '_', name, flags=re.UNICODE).strip()) <\/code><\/pre>\n<p>  <\/li>\n<li>\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u043e\u0432: \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c (n), \u0433\u0434\u0435 n \u2014 \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0434\u0430\u044e\u0449\u0435\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430.<br \/> \n<pre><code class=\"python\">        #file might exist, so add (1) or (2) etc         counter = 1         if exists(fname) and isfile(fname):             name, ext = splitext(fname)             fname = name + &quot; ({})&quot;.format(counter) + ext         while exists(fname) and isfile(fname):             counter += 1             name, ext = splitext(fname)             fname = name[:-4] + &quot; ({})&quot;.format(counter) + ext <\/code><\/pre>\n<p>  <\/li>\n<\/ul>\n<h5>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c<\/h5>\n<p>  \u041a\u043e\u0434 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a api \u0432\u0437\u044f\u0442 \u0438\u0437 <a href=\"http:\/\/habrahabr.ru\/post\/143972\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u0430 <a href=\"http:\/\/habrahabr.ru\/users\/dzhioev\/\" class=\"user_link\">dzhioev<\/a>, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e, \u0447\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0441\u0442\u0435\u043d\u044b), \u043d\u0430\u0434\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u0442\u043e\u0432:  <\/p>\n<pre><code class=\"python\">        #determine posts count         (response, json_stuff) = call_api(&quot;wall.get&quot;, [(&quot;owner_id&quot;, args.id), (&quot;count&quot;, 1), (&quot;offset&quot;, 0)], args)         count = response[0] <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0441\u0442 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0435\u0433\u043e  <\/p>\n<pre><code class=\"python\">        for x in xrange(args.wall_start, args.wall_end):             (post, json_stuff) = call_api(&quot;wall.get&quot;, [(&quot;owner_id&quot;, args.id), (&quot;count&quot;, 1), (&quot;offset&quot;, x)], args)             process_post((&quot;wall post&quot;, x), post, post_parser, json_stuff) <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u2014 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 JSON, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0434\u043b\u044f python&#8217;\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e json.loads() \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435, \u0438\u043c\u0435\u0435\u043c \u0445\u044d\u0448-\u043c\u0430\u0441\u0441\u0438\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044f (\u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435) \u043d\u0435\u0441\u0443\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442. \u0427\u0442\u043e\u0431\u044b \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c, \u043a\u0430\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u043a\u0430\u043a\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043c\u043e\u0449\u044c\u044e \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438: \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434, \u0438\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c.   <\/p>\n<pre><code class=\"python\">        for k in raw_data.keys():             try:                 f = getattr(self, k)                 keys.append(k)                 funcs.append(f)             except AttributeError:                 logging.warning(&quot;Not implemented: {}&quot;.format(k))         logging.info(&quot;Saving: {} for {}&quot;.format(', '.join(keys), raw_data['id']))          for (f, k) in zip(funcs, keys):             f(k, raw_data) <\/code><\/pre>\n<h5>\u041f\u0430\u0440\u0441\u0438\u043c<\/h5>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043b\u044f\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0430. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u2014 \u044d\u0442\u043e attachments, text, comments. Attachments \u2014 \u044d\u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043a \u043f\u043e\u0441\u0442\u0443 (\u0430\u0443\u0434\u0438\u043e, \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u0437\u0430\u043c\u0435\u0442\u043a\u0438), \u043d\u0430\u0434\u043e \u0443\u043c\u0435\u0442\u044c \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0441\u044f, \u043a\u0430\u043a\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 attachment, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: \u043f\u043e \u0442\u0438\u043f\u0443 \u0430\u0442\u0442\u0430\u0447\u0430 \u0438\u0449\u0435\u043c \u043c\u0435\u0442\u043e\u0434 \u0441 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u00ab\u043a\u0430\u0447\u0430\u043b\u043a\u0438\u00bb \u0434\u043b\u044f \u0430\u0443\u0434\u0438\u043e:  <\/p>\n<pre><code class=\"python\">    def dl_audio(self, data):         aid = data[&quot;aid&quot;]         owner = data[&quot;owner_id&quot;]         request = &quot;{}_{}&quot;.format(owner, aid)         (audio_data, json_stuff) = call_api(&quot;audio.getById&quot;, [(&quot;audios&quot;, request), ], self.args)         try:             data = audio_data[0]             name = u&quot;{artist} - {title}.mp3&quot;.format(**data)             self.save_url(data[&quot;url&quot;], name)         except IndexError: # deleted :(             logging.warning(&quot;Deleted track: {}&quot;.format(str(data)))             return          # store lyrics if any         try:             lid = data[&quot;lyrics_id&quot;]         except KeyError:             return         (lyrics_data, json_stuff) = call_api(&quot;audio.getLyrics&quot;, [(&quot;lyrics_id&quot;, lid), ], self.args)         text = lyrics_data[&quot;text&quot;].encode('utf-8')         ... <\/code><\/pre>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0438\u0437\u044a\u044f\u0442\u044b\u0435 \u043f\u043e \u043f\u0440\u043e\u0441\u044c\u0431\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u0434\u043b\u044f \u043d\u0438\u0445 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u043e\u0439 \u043e\u0442\u0432\u0435\u0442.<\/p>\n<h4>\u0410 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435?<\/h4>\n<p>  \u041c\u0435\u0442\u043e\u0434\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, \u0442\u0435\u043a\u0441\u0442\u0430, \u0437\u0430\u043c\u0435\u0442\u043e\u043a, \u0437\u0430\u043a\u0430\u0447\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 <a href=\"https:\/\/github.com\/Rast1234\/vkd\">\u0432 github<\/a>. \u0421\u043a\u0430\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e \u0432\u0441\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c. \u0415\u0449\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u043c\u0435\u0435\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438\u0445 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435\u0442. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u2014 <a href=\"https:\/\/github.com\/Rast1234\/vkd\/blob\/master\/README.md\">\u0432 readme<\/a>.<\/p>\n<h5>TODO<\/h5>\n<p>  \u042f \u043d\u0435 \u0441\u0442\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0444\u043e\u0442\u043e\u0430\u043b\u044c\u0431\u043e\u043c\u043e\u0432, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0442\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u0430\u0436\u043d\u043e\u0433\u043e \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f, \u0434\u0430 \u0438 \u043a\u043e\u0434 <a href=\"http:\/\/habrahabr.ru\/users\/kilonet\/\" class=\"user_link\">kilonet<\/a> \u0438\u0437 <a href=\"http:\/\/habrahabr.ru\/post\/183546\/\">\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u0438<\/a> \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0415\u0449\u0435 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0432\u0438\u0434\u0435\u043e\u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0437\u0430\u043c\u0435\u0442\u043a\u0438, \u043c\u043d\u0435 \u044d\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u044b\u043c.<\/p>\n<h6>\u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a<\/h6>\n<p>  \u041a\u043e\u0434 \u0434\u0430\u043b\u0435\u043a \u043e\u0442 \u0438\u0434\u0435\u0430\u043b\u0430 \u0438 \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u043c \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439, \u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043c\u043e\u044f \u043f\u043e\u0434\u0435\u043b\u043a\u0430, \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439\/\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432\/\u043c\u0443\u0437\u044b\u043a\u0438, \u0438\u043b\u0438 \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/184224\/\"> http:\/\/habrahabr.ru\/post\/184224\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043f\u043b\u043e\u0445\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u043c\u0438 \u0440\u0435\u043f\u043e\u0441\u0442 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u044b\u043c, \u0435\u0441\u043b\u0438 \u0430\u0432\u0442\u043e\u0440 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0435\u0435 \u0443\u0434\u0430\u043b\u0438\u0442. \u041d\u0435\u0434\u0430\u0432\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0432 vk \u0441\u0442\u0430\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043a\u0430\u043f\u043b\u0435\u0439, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441 <s>\u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u044f\u0434\u0435\u0440\u043d\u043e\u0439 \u0432\u043e\u0439\u043d\u044b<\/s>. \u041f\u043e\u0438\u0441\u043a\u0430\u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043d\u0438\u0447\u0435\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u043e \u043c\u0435\u043d\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python.<\/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-184224","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/184224","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=184224"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/184224\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}