{"id":310566,"date":"2020-09-27T21:00:55","date_gmt":"2020-09-27T21:00:55","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=310566"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=310566","title":{"rendered":"\u0411\u043e\u0442 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 VK"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/520860\/\">\n<blockquote><p>\u0412\u041d\u0418\u041c\u0410\u041d\u0418\u0415: \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0430 <b><i><u>\u0442\u043e\u043b\u044c\u043a\u043e<\/u><\/i><\/b> \u0432 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0446\u0435\u043b\u044f\u0445, \u044f <b><i><u>\u043d\u0435 \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u044e<\/u><\/i><\/b> \u0412\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0443\u0440\u043e\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432 \u0438\u043b\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0433\u043e\u0434\u044b<\/p><\/blockquote>\n<h2>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c<\/h2>\n<p>  <b>\u0411\u043e\u0442\u0430<\/b> \u0434\u043b\u044f <u>\u0430\u0432\u0442\u043e\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/u> \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430 \u0441\u0442\u0435\u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b Vk<\/p>\n<h2>\u0417\u0430\u0447\u0435\u043c<\/h2>\n<p>  \u0414\u043b\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439<\/p>\n<h2>\u0427\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u0417\u043d\u0430\u043d\u0438\u0435 \u042f\u041f Python<\/li>\n<li>Python3<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/users\/ilya-cmd\/posts\/\">\u041c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 XML \u0444\u0430\u0439\u043b\u0430\u043c\u0438<\/a><\/li>\n<li>Python \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: vk_api \u0438 time<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041d\u0430\u0447\u043d\u0435\u043c<\/h2>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 wall \u0438 offline. \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0435\u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 <a href=\"https:\/\/vk.com\/dev\/standalone\" rel=\"nofollow\">\u0441\u0432\u043e\u0435 Standalone-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Vk<\/a>. \u0418 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0435\u0433\u043e ID.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435: <br \/>  <a href=\"https:\/\/oauth.vk.com\/authorize?client_id=IDAPP&amp;scope=wall\" rel=\"nofollow\">oauth.vk.com\/authorize?client_id=IDAPP&amp;scope=wall<\/a>,offline&amp;redirect_uri=http:\/\/api.vk.com\/blank.html&amp;response_type=token<br \/>  \u0418 \u0432\u043c\u0435\u0441\u0442\u043e IDAPP \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 ID \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0418\u043b\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c <a href=\"https:\/\/oauth.vk.com\/authorize?client_id=7594388&amp;scope=wall,offline&amp;redirect_uri=http:\/\/api.vk.com\/blank.html&amp;response_type=token\" rel=\"nofollow\">\u0441\u0441\u044b\u043b\u043a\u043e\u0439<\/a>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0412\u0430\u0441.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0412\u0430\u0441 \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0435\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0430\u0439\u0442, \u0430 \u0432 URL \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432 GET \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 access_token \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u0438 \u043d\u0443\u0436\u0435\u043d, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0433\u043e.<\/p>\n<h3>\u0420\u0430\u0431\u043e\u0442\u0430 XML<\/h3>\n<p>  \u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u043c \u0444\u0430\u0439\u043b \u0444\u043e\u0440\u043c\u0430\u0442\u0430 .xml \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c:  <\/p>\n<pre><code class=\"xml\">&lt;settings&gt;   &lt;token&gt;token&lt;\/token&gt;   &lt;textPost&gt;Text post&lt;\/textPost&gt;   &lt;interval&gt;120&lt;\/interval&gt;      &lt;post&gt;     &lt;attachments&gt;       &lt;attachment&gt;attachment&lt;\/attachment&gt;     &lt;\/attachments&gt;     &lt;copyright&gt;copyright&lt;\/copyright&gt;     &lt;v&gt;5.122&lt;\/v&gt;   &lt;\/post&gt;      &lt;groups&gt;     &lt;group&gt;short name group&lt;\/group&gt;   &lt;\/groups&gt; &lt;\/settings&gt; <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435:  <\/p>\n<ul>\n<li>\u00abtoken\u00bb \u043d\u0430 \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432\u044b\u0448\u0435<\/li>\n<li>\u00abText post\u00bb \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432 \u0437\u0430\u043f\u0438\u0441\u0438<\/li>\n<li>\u00abattachment\u00bb \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d \u043a \u0437\u0430\u043f\u0438\u0441\u0438<\/li>\n<li>\u00abcopyright\u00bb \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<\/li>\n<li>\u00abshort name group\u00bb \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0438\u043c\u044f(\u0431\u0435\u0437 <a href=\"https:\/\/vk.com\/\" rel=\"nofollow\">vk.com<\/a>) \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430\/ \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f(\u0441\u0442\u0435\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438)<\/li>\n<\/ul>\n<h3>\u041d\u0430\u0447\u043d\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434<\/h3>\n<p>  \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u0432\u043e \u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u043e\u0442 \u043b\u0438\u0446\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u043a\u0435\u043d.  <\/p>\n<pre><code class=\"python\">import vk_api import time  from modules import XML as moduleXml  XML = moduleXml.XML(&quot;settings&quot;) VK = vk_api.VkApi(token=XML.parsingFile(&quot;token&quot;)) <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u0441\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u0430, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u0438.  <\/p>\n<pre><code class=\"python\">import vk_api import time  from modules import XML as moduleXml  XML = moduleXml.XML(&quot;settings&quot;) VK = vk_api.VkApi(token=XML.parsingFile(&quot;token&quot;))  groupsId = [] groupsShortName = &quot;&quot; for child in XML.parsingFile(&quot;groups&quot;, False):     groupsShortName += child.text + &quot;,&quot;  for group in VK.method(&quot;groups.getById&quot;, {&quot;group_ids&quot;: groupsShortName}):     groupsId.append(group[&quot;id&quot;] * -1)  del groupsShortName <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0437\u0430\u043f\u0438\u0441\u0438, \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0443\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0437\u0430\u043f\u0438\u0441\u0438.  <\/p>\n<pre><code class=\"python\">import vk_api import time  from modules import XML as moduleXml  XML = moduleXml.XML(&quot;settings&quot;) VK = vk_api.VkApi(token=XML.parsingFile(&quot;token&quot;))  groupsId = [] groupsShortName = &quot;&quot; for child in XML.parsingFile(&quot;groups&quot;, False):     groupsShortName += child.text + &quot;,&quot;  for group in VK.method(&quot;groups.getById&quot;, {&quot;group_ids&quot;: groupsShortName}):     groupsId.append(group[&quot;id&quot;] * -1)  del groupsShortName  textPost = XML.parsingFile(&quot;textPost&quot;) intervalPost = int(XML.parsingFile(&quot;interval&quot;)) <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u0441\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u044b \u043a \u0437\u0430\u043f\u0438\u0441\u0438.  <\/p>\n<pre><code class=\"python\">import vk_api import time  from modules import XML as moduleXml  XML = moduleXml.XML(&quot;settings&quot;) VK = vk_api.VkApi(token=XML.parsingFile(&quot;token&quot;))  groupsId = [] groupsShortName = &quot;&quot; for child in XML.parsingFile(&quot;groups&quot;, False):     groupsShortName += child.text + &quot;,&quot;  for group in VK.method(&quot;groups.getById&quot;, {&quot;group_ids&quot;: groupsShortName}):     groupsId.append(group[&quot;id&quot;] * -1)  del groupsShortName  textPost = XML.parsingFile(&quot;textPost&quot;) intervalPost = int(XML.parsingFile(&quot;interval&quot;))  attachments = [attachment.text for attachment in XML.parsingFile(&quot;attachments&quot;, False)] copyright = XML.parsingFile(&quot;copyright&quot;) v = XML.parsingFile(&quot;v&quot;) <\/code><\/pre>\n<p>  \u0423 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0446\u0438\u043a\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0446\u0438\u043a\u043b, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0443\u0441\u0442\u043e\u0439. \u0422\u0430\u043a \u0436\u0435 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/p>\n<pre><code class=\"python\">import vk_api import time  from modules import XML as moduleXml  XML = moduleXml.XML(&quot;settings&quot;) VK = vk_api.VkApi(token=XML.parsingFile(&quot;token&quot;))  groupsId = [] groupsShortName = &quot;&quot; for child in XML.parsingFile(&quot;groups&quot;, False):     groupsShortName += child.text + &quot;,&quot;  for group in VK.method(&quot;groups.getById&quot;, {&quot;group_ids&quot;: groupsShortName}):     groupsId.append(group[&quot;id&quot;] * -1)  del groupsShortName  textPost = XML.parsingFile(&quot;textPost&quot;) intervalPost = int(XML.parsingFile(&quot;interval&quot;))  attachments = [attachment.text for attachment in XML.parsingFile(&quot;attachments&quot;, False)] copyright = XML.parsingFile(&quot;copyright&quot;) v = XML.parsingFile(&quot;v&quot;)  done = False  def publicPosts():     pass  if __name__ == &quot;__main__&quot;:     done = True  while done:     publicPosts()     time.sleep(intervalPost) <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 API \u00abwall.post\u00bb \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u043d\u044c\u0448\u0435. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<pre><code class=\"python\">import vk_api import time  from modules import XML as moduleXml  XML = moduleXml.XML(&quot;settings&quot;) VK = vk_api.VkApi(token=XML.parsingFile(&quot;token&quot;))  groupsId = [] groupsShortName = &quot;&quot; for child in XML.parsingFile(&quot;groups&quot;, False):     groupsShortName += child.text + &quot;,&quot;  for group in VK.method(&quot;groups.getById&quot;, {&quot;group_ids&quot;: groupsShortName}):     groupsId.append(group[&quot;id&quot;] * -1)  del groupsShortName  textPost = XML.parsingFile(&quot;textPost&quot;) intervalPost = int(XML.parsingFile(&quot;interval&quot;))  attachments = [attachment.text for attachment in XML.parsingFile(&quot;attachments&quot;, False)] copyright = XML.parsingFile(&quot;copyright&quot;) v = XML.parsingFile(&quot;v&quot;)  done = False  def publicPosts():     for groupId in groupsId:         for i in range(1, 5):             result = VK.method(&quot;wall.post&quot;, {                 &quot;owner_id&quot;: groupId,                 &quot;message&quot;: textPost,                 &quot;attachments&quot;: attachments,                 &quot;copyright&quot;: copyright,                 &quot;v&quot;: v             })             if result[&quot;post_id&quot;]:                 print(&quot;Good post, id post - &quot; + str(result[&quot;post_id&quot;]))             else:                 print(&quot;Error posting&quot;)  if __name__ == &quot;__main__&quot;:     done = True  while done:     publicPosts()     time.sleep(intervalPost) <\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u0433\u043e\u0442\u043e\u0432. \u0421\u043a\u0430\u0436\u0443 \u0412\u0430\u043c \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043c\u043d\u0435 \u2014 13 \u043b\u0435\u0442. \u0418 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u044f \u0443\u043c\u0435\u044e \u0438 \u0441\u0447\u0438\u0442\u0430\u044e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445. \u0422\u0430\u043a \u043c\u043e\u044e <a href=\"https:\/\/habr.com\/ru\/post\/519604\">\u043f\u0440\u043e\u0448\u043b\u0443\u044e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044e<\/a> \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0438 2\u043a+ \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u0430 40 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438, \u0445\u043e\u0442\u044f \u0442\u0430\u043c \u0438 \u0435\u0441\u0442\u044c, \u0447\u0442\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u042d\u0442\u043e \u043c\u0435\u043d\u044f \u0437\u0430\u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\u0430, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0412\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435.<\/p>\n<p>  <a href=\"https:\/\/github.com\/Ilya-cmd\/Auto-posting-VK\" rel=\"nofollow\">\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 gitHub<\/a>.<\/p>\n<blockquote><p>\u0412\u041d\u0418\u041c\u0410\u041d\u0418\u0415: \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0430 <b><i><u>\u0442\u043e\u043b\u044c\u043a\u043e<\/u><\/i><\/b> \u0432 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0446\u0435\u043b\u044f\u0445, \u044f <b><i><u>\u043d\u0435 \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u044e<\/u><\/i><\/b> \u0412\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0443\u0440\u043e\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432 \u0438\u043b\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0433\u043e\u0434\u044b<\/p><\/blockquote>\n<\/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=\"https:\/\/habr.com\/ru\/post\/520860\/\"> https:\/\/habr.com\/ru\/post\/520860\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/520860\/\">\n<blockquote><p>\u0412\u041d\u0418\u041c\u0410\u041d\u0418\u0415: \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0430 <b><i><u>\u0442\u043e\u043b\u044c\u043a\u043e<\/u><\/i><\/b> \u0432 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0446\u0435\u043b\u044f\u0445, \u044f <b><i><u>\u043d\u0435 \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u044e<\/u><\/i><\/b> \u0412\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0443\u0440\u043e\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432 \u0438\u043b\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0433\u043e\u0434\u044b<\/p><\/blockquote>\n<h2>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c<\/h2>\n<p>  <b>\u0411\u043e\u0442\u0430<\/b> \u0434\u043b\u044f <u>\u0430\u0432\u0442\u043e\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/u> \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430 \u0441\u0442\u0435\u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b Vk<\/p>\n<h2>\u0417\u0430\u0447\u0435\u043c<\/h2>\n<p>  \u0414\u043b\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439<\/p>\n<h2>\u0427\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u0417\u043d\u0430\u043d\u0438\u0435 \u042f\u041f Python<\/li>\n<li>Python3<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/users\/ilya-cmd\/posts\/\">\u041c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 XML \u0444\u0430\u0439\u043b\u0430\u043c\u0438<\/a><\/li>\n<li>Python \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: vk_api \u0438 time<\/li>\n<\/ul>\n<p>  <\/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-310566","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310566","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=310566"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310566\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=310566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=310566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=310566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}