{"id":297714,"date":"2020-01-26T21:00:12","date_gmt":"2020-01-26T21:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=297714"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=297714","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 Notion"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/485542\/\">\u041c\u043d\u043e\u0433\u0438\u043c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0432 Notion&#8217;e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u043b\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0448\u0442\u0443\u043a\u0443 \u0434\u043b\u044f \u0438\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>  <b>\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441 \u043c\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c1e\/1f5\/ecc\/c1e1f5eccd7f88f45308a544cf23a720.jpg\" alt=\"image\"><br \/>  \u0412\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445\u0441\u044f, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 1. \u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h3>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0432 Notion&#8217;\u0435 \u043d\u0435\u0442, \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f (\u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f). \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0448\u0442\u0443\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f:<\/p>\n<ol>\n<li>\u0411\u0443\u0434\u0435\u0442 \u0431\u0440\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0433\u0434\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u0438<\/li>\n<li>\u0411\u0443\u0434\u0435\u0442 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0430. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u0438\u0437-\u0437\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b + \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e \u043d\u0435 \u0437\u0430\u043b\u0435\u0437\u0430\u0442\u044c \u0432 \u043a\u043e\u0434 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c.<\/li>\n<li>\u0411\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f, \u0443\u0434\u0430\u043b\u044f\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0433\u0440\u0430\u0444\u0438\u043a\u0430.<\/li>\n<li>\u0411\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 (\u0440\u0430\u0437 \u0432 \u0447\u0430\u0441), \u0438, \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<\/li>\n<\/ol>\n<p>  <\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 2. \u0420\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043f\u043e \u043f\u043e\u043b\u043e\u0447\u043a\u0430\u043c<\/h3>\n<p>  \u041f\u0438\u0441\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Django. \u0418\u043c\u0435\u043d\u043d\u043e Django, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u0431\u0430 \u0434\u043b\u044f API Notion&#8217;a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435. \u041f\u043e\u0442\u043e\u043c \u044d\u0442\u043e \u0432\u0441\u0435 \u0434\u0435\u043b\u043e \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0430 Heroku. \u0418\u0437 IFTTT \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u0440\u0433\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u0448\u0442\u0443\u043a\u0443 \u043d\u0430 Heroku \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u044e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/184\/0e5\/8e3\/1840e58e35216e45538228f07c9f68ef.jpg\" alt=\"image\"><\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 3. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c<\/h3>\n<p>  <\/p>\n<ol>\n<li>1. \u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442 IFTTT<\/li>\n<li>2. \u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u043e\u0447\u0435\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446 Notion&#8217;a \u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432<\/li>\n<li>3. \u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/li>\n<li>4. \u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0438 \u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443<\/li>\n<\/ol>\n<p>  <\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 4. \u041f\u0438\u0448\u0435\u043c \u043a\u043e\u0434<\/h3>\n<p>  \u0418\u0434\u0435\u043c \u0432 Notion, \u0436\u043c\u044f\u043a\u0430\u0435\u043c Ctrl + Shift + J, \u0438\u0434\u0435\u043c \u0432 Application -&gt; Cookies, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c token_v2 \u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e TOKEN. \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043c\u043e\u0433\u043b\u0430 \u043a\u0430\u043a-\u0442\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 API Notion&#8217;a.<\/p>\n<p>  \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0433\u0434\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432. \u0425\u0440\u0430\u043d\u0438\u0442\u044c \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<pre><code class=\"python\">PAGES = [     &quot;https:\/\/www.notion.so\/mixedself\/Dashboard-40a3156030fd4d9cb1935993e1f2c7eb&quot; ] <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043a-\u0442\u043e \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0441\u0430\u043c\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0434\u043b\u044f:<\/p>\n<ol>\n<li>\u041f\u043e\u043b\u044f, \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0443 \u043d\u0430\u0441 \u043d\u0430 \u043e\u0441\u0438 X<\/li>\n<li>\u041f\u043e\u043b\u044f, \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0443 \u043d\u0430\u0441 \u043d\u0430 \u043e\u0441\u0438 Y<\/li>\n<li>\u0423\u0440\u043b \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443<\/li>\n<\/ol>\n<p>  \u0412\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">BASE_KEY = &quot;Base:&quot; X_AXIS_KEY = &quot;X axis:&quot; Y_AXIS_KEY = &quot;Y axis:&quot; <\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">def get_empty_object():     return {         &quot;database&quot;: &quot;&quot;,         &quot;x&quot;: &quot;&quot;,         &quot;y&quot;: &quot;&quot;     } <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u043f\u0443\u0441\u0442\u043e\u0435 \u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0438\u043b\u0438\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u0415\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435 \u043f\u043e\u043b\u044f \u043d\u0435 \u043f\u0443\u0441\u0442\u044b\u0435, \u0442\u043e\u0433\u0434\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0430.<\/p>\n<pre><code class=\"python\">def is_not_empty(thing):     return thing != &quot;&quot;   def check_for_completeness(object):     return is_not_empty(object[&quot;database&quot;]) and is_not_empty(object[&quot;x&quot;]) and is_not_empty(object[&quot;y&quot;]) <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0435 (\u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0444\u0430\u043a\u0442\u0443) \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u043e\u0447\u0438\u0449\u0430\u0442\u044c. \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0430\u0440\u043e\u0447\u043a\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435: Notion \u0445\u0440\u0430\u043d\u0438\u0442 \u0436\u0438\u0440\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442 (\u043a\u0430\u043a \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043d\u0430\u0434 \u043a\u0430\u0442\u043e\u043c) __\u0432\u043e\u0442\u0442\u0430\u043a\u0432\u043e\u0442__.<\/p>\n<pre><code class=\"python\">def br_text(text):     return &quot;__&quot; + text + &quot;__&quot;   def clear_text(text):     return text.replace(br_text(BASE_KEY), &quot;&quot;).replace(BASE_KEY, &quot;&quot;) \\         .replace(br_text(X_AXIS_KEY), &quot;&quot;).replace(X_AXIS_KEY, &quot;&quot;) \\         .replace(br_text(Y_AXIS_KEY), &quot;&quot;).replace(Y_AXIS_KEY, &quot;&quot;).strip() <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0448\u0442\u0443\u0447\u043a\u0438. \u041f\u043e\u0434 \u043a\u043e\u0434\u043e\u043c \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0442\u0443\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:<\/p>\n<pre><code class=\"python\">def plot():     client = NotionClient(token_v2=TOKEN)      for page in PAGES:         blocks = client.get_block(page)         thing = get_empty_object()          for i in range(len(blocks.children)):             block = blocks.children[i]             print(block.type)              if block.type != &quot;image&quot;:                 title = block.title                  if BASE_KEY in title:                     thing[&quot;database&quot;] = clear_text(title).split(&quot;](&quot;)[0].replace(&quot;[&quot;, &quot;&quot;)                  elif X_AXIS_KEY in title:                     thing[&quot;x&quot;] = clear_text(title)                  elif Y_AXIS_KEY in title:                     thing[&quot;y&quot;] = clear_text(title)                      if check_for_completeness(thing):                         # not last block                         if i != len(blocks.children) - 1:                             next_block = blocks.children[i + 1]                              # if next block is picture, then it is previous                             # version of the plot, then we should remove it                             if blocks.children[i + 1].type == &quot;image&quot;:                                 next_block.remove()                          draw_plot(client, thing, block, blocks)                         thing = get_empty_object() <\/code><\/pre>\n<p>  \u041c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043a Notion&#8217;\u0443. \u041f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u043f\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u0436\u043d\u044b \u0433\u0440\u0430\u0444\u0438\u043a\u0438. \u041a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c: \u0435\u0441\u0442\u044c \u043b\u0438 \u0442\u0430\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438\u043b\u0438 \u043d\u0435\u0442. \u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0435\u0441\u0442\u044c \u2014 \u0447\u0438\u0441\u0442\u0438\u043c \u043e\u0442\u0442\u0443\u0434\u0430 \u0442\u0435\u043a\u0441\u0442 \u0438 \u043a\u043b\u0430\u0434\u0435\u043c \u0432 \u043e\u0431\u044a\u0435\u043a\u0442. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f, \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0431\u044b\u043b \u043b\u0438 \u0443\u0436\u0435 \u0442\u0443\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0433\u0440\u0430\u0444\u0438\u043a (\u0435\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u043c) \u0438 \u0438\u0434\u0435\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0433\u0440\u0430\u0444\u0438\u043a.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0441\u043e\u0431\u0438\u0440\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0438.<\/p>\n<pre><code class=\"python\">def get_lines_array(thing, client):     database = client.get_collection_view(thing[&quot;database&quot;])     rows = database.default_query().execute()     lines_array = []      for i in range(1, len(rows)):         previous_row = rows[i - 1]         current_row = rows[i]         line = [(get_point_from_row(thing, previous_row)), (get_point_from_row(thing, current_row))]         lines_array.append(line)      return lines_array <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043c\u044b \u0434\u043e\u0431\u044b\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u0443, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0435\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0430\u043c, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044f \u043d\u0430\u0431\u043e\u0440 \u043b\u0438\u043d\u0438\u0439 \u043e\u0442 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e \u0442\u043e\u0447\u043a\u0438.<\/p>\n<p>  \u0410 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 get_point_from_row? \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u043e\u0431\u044a\u0435\u043a\u0442 \u2014 \u044d\u0442\u043e \u0434\u0430\u0442\u0430 (\u0447\u0430\u0441\u0442\u043e \u0432\u0435\u0434\u044c \u043d\u0430\u0434\u043e \u043d\u0430 \u043e\u0441\u0438 X \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0430\u0442\u0443), \u0442\u043e \u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c, \u0438 \u043d\u0430\u0434\u043e \u0435\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c:<\/p>\n<pre><code class=\"python\">def get_point_from_row(thing, row):     x_property = row.get_property(thing[&quot;x&quot;])     y_property = row.get_property(thing[&quot;y&quot;])      if thing[&quot;x&quot;] == &quot;date&quot;:         x_property = x_property.start      if thing[&quot;y&quot;] == &quot;date&quot;:         y_property = y_property.start      return x_property, y_property <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0442\u0430\u0449\u0435\u043c\u0442\u0430 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u0433\u0440\u0430\u0444\u0438\u043a.<\/p>\n<pre><code class=\"python\"> def draw_plot(client, thing, block, page):     photo = page.children.add_new(ImageBlock)     photo.move_to(block, &quot;after&quot;)      # if thing[&quot;x&quot;] == &quot;date&quot; or thing[&quot;y&quot;] == &quot;date&quot;:     #    x_array, y_array = get_lines_date_array(thing, client)     #   plt.plot_date(x_array, y_array)     # else:      array = get_lines_array(thing, client)     print(array)      for i in range(1, len(array)):         points = reparse_points(array[i - 1:i][0])         plt.plot(points[0], points[1], color=&quot;red&quot;)      if not path.exists(&quot;images&quot;):         os.mkdir(&quot;images&quot;)      if thing[&quot;x&quot;] == &quot;date&quot;:         x_axis_dates()      filename = &quot;images\/&quot; + random_string(15) + &quot;.png&quot;     plt.savefig(filename)      print(&quot;Uploading &quot; + filename)     photo.upload_file(filename) <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0431\u043b\u043e\u043a (\u0441 \u0444\u043e\u0442\u043e), \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u0435\u0433\u043e \u043f\u043e\u0434 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0430. \u041f\u043e\u0442\u043e\u043c \u0440\u0435\u043f\u0430\u0440\u0441\u0438\u043c \u0442\u043e\u0447\u043a\u0438 (\u043e\u0431 \u044d\u0442\u043e\u043c \u2014 \u043d\u0438\u0436\u0435), \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043b\u0438\u043d\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e matplotlib, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043d\u043c \u0444\u0430\u0439\u043b\u0430 \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0431\u043b\u043e\u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438.<\/p>\n<p>  \u0420\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">def random_string(string_length=10):     letters = string.ascii_lowercase     return ''.join(random.choice(letters) for i in range(string_length)) <\/code><\/pre>\n<p>  \u0410 \u0442\u043e\u0447\u043a\u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0440\u0435\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e matplotlib \u043d\u0430 \u0432\u0445\u043e\u0434 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u044d\u0442\u043e \u0443 \u043d\u0430\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e.<\/p>\n<pre><code class=\"python\">def reparse_points(points):     return [         [points[0][0], points[1][0]],         [points[0][1], points[1][1]],     ] <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0441\u044f, \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 \u0435\u0449\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043b\u0438 \u0434\u0430\u0442\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e \u043e\u0441\u0438 \u0425. \u0415\u0441\u043b\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f, \u0442\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0445 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c:<\/p>\n<pre><code class=\"python\">def x_axis_dates(ax=None, fig=None):     if ax is None:         ax = plt.gca()      if fig is None:         fig = plt.gcf()      loc = mdates.AutoDateLocator()     fmt = mdates.AutoDateFormatter(loc)      ax.xaxis.set_major_locator(loc)     ax.xaxis.set_major_formatter(fmt)      fig.autofmt_xdate() <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u043d\u043e\u0432\u044b\u0439 \u0442\u0440\u0435\u0434, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u043f\u0440\u0438\u0434\u0435\u0442 POST-\u0437\u0430\u043f\u0440\u043e\u0441.<br \/>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e POST? \u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u0447\u0442\u043e\u0431\u044b \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043a \u0432\u0430\u043c \u043d\u0430 \u043e\u0433\u043e\u043d\u0435\u043a \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u0442 \u043a\u0442\u043e-\u0442\u043e, \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f.<\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u043e\u0432\u044b\u0439 \u0442\u0440\u0435\u0434? IFTTT, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u044d\u0442\u043e\u0439 \u0448\u0442\u0443\u043a\u0438, \u043d\u0435 \u043b\u044e\u0431\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430\u0434\u043e \u0436\u0434\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e (\u0430 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0436\u0434\u0430\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u043b\u0433\u043e), \u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0438\u0442\u044c \u0448\u0442\u0443\u043a\u0435\u043d\u0446\u0438\u044e.<\/p>\n<pre><code class=\"python\">@csrf_exempt def index(request):     if request.method == &quot;POST&quot;:         thread = Thread(target=plot)         thread.start()          return HttpResponse(&quot;Hello, world.&quot;)      else:         return HttpResponse(&quot;Hello, world.&quot;) <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 5. IFTTT<\/h3>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u043f\u043f\u043b\u0435\u0442\u043e\u0432. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440 (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u044d\u0442\u043e Date&amp;time), \u0441\u0442\u0430\u0432\u0438\u043c \u201e\u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0430\u0441\u201c. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u043c (\u0442\u043e \u0435\u0441\u0442\u044c \u201ethat\u201c) Webhook, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448 (\u043f\u043e\u043a\u0430 \u0447\u0442\u043e) \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u0434\u0430\u0431\u044b \u043f\u043e\u0442\u0435\u0441\u0442\u0438\u0442\u044c. \u041d\u0443 \u0438 \u0432\u0441\u0435. \u0422\u0435\u0441\u0442\u0438\u043c.<\/p>\n<h3>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0430 Heroku<\/h3>\n<p>  \u0412\u044b \u0434\u0443\u043c\u0430\u043b\u0438, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043c\u044b \u0432\u043e\u0437\u0438\u043b\u0438\u0441\u044c \u0441 \u0432\u043e\u0442 \u0441 \u044d\u0442\u0438\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0435\u043d\u0438\u0435\u043c \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b IFTTT \u2014 \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043b\u0430\u0442\u0438\u0442\u044c. Heroku \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 \u0434\u043b\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043d\u0430\u0448\u0435\u0439 \u0448\u0442\u0443\u0447\u043a\u0438. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0440\u0432\u0438\u0441 \u0441\u043f\u0430\u043b \u043c\u0438\u043d\u0438\u043c\u0443\u043c 6 \u0447\u0430\u0441\u043e\u0432. \u0410 \u043e\u043d \u0442\u043e\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043f\u0430\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u0435\u0433\u043e \u0437\u043e\u0432\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0430\u0441, \u0430 \u043d\u0435 \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435. \u0418\u0434\u0435\u043c \u0432 heroku <a href=\"https:\/\/dashboard.heroku.com\/new-app\">\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/a>. \u0414\u0430\u043b\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 <a href=\"https:\/\/devcenter.heroku.com\/articles\/heroku-cli\">\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442<\/a>. \u0410 \u043f\u043e\u0442\u043e\u043c \u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u043c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0432 \u0432\u0441\u0435 \u043d\u0430 heroku, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0430\u0448 \u0430\u043f\u043f\u043b\u0435\u0442 \u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0443\u0440\u043b \u043d\u0430 \u043d\u043e\u0432\u044b\u0439.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 5. IFTTT<\/h3>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0432\u0430\u043c \u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u0430. <\/p>\n<p>  \u041c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0432\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u043e\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e Notion:<\/p>\n<p>  <a href=\"https:\/\/habr.com\/ru\/post\/455714\/\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c Google Forms \u0432 Notion \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e IFTTT \u0438 Django<br \/>  <\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/467009\/\">\u0414\u0435\u043b\u0430\u0435\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441 Notion \u0438 Python<\/a><\/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\/485542\/\"> https:\/\/habr.com\/ru\/post\/485542\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/485542\/\">\u041c\u043d\u043e\u0433\u0438\u043c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0432 Notion&#8217;e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u043b\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0448\u0442\u0443\u043a\u0443 \u0434\u043b\u044f \u0438\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>  <b>\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441 \u043c\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c1e\/1f5\/ecc\/c1e1f5eccd7f88f45308a544cf23a720.jpg\" alt=\"image\"><br \/>  \u0412\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445\u0441\u044f, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/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-297714","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297714","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=297714"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297714\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}