{"id":303326,"date":"2020-05-10T15:00:35","date_gmt":"2020-05-10T15:00:35","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=303326"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=303326","title":{"rendered":"\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 Covid-19"},"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\/501246\/\">\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0430 \u043f\u043e\u0432\u0441\u0435\u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 \u0438 \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u043c\u0438 \u043c\u044b \u0441\u0442\u0430\u043b\u0438 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0434\u043e\u0441\u0442\u044c \u043e\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u044b \u0437\u0430\u043f\u0438\u043b\u0438\u043c \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u0435\u043c\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432\u0430\u043d\u0438\u043b\u044c\u043d\u044b\u0435 Python \u0438 JavaScript, \u0430 \u0442\u0430\u043a\u0436\u0435, \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0438\u043c \u0435\u0433\u043e \u0432 <a href=\"https:\/\/about.gitlab.com\/stages-devops-lifecycle\/pages\/\" rel=\"nofollow\">GitLab Pages<\/a>. \u0411\u044b\u0441\u0442\u0440\u043e, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e, \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e.<br \/>  \u0412\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u0432\u0438\u0434\u043e\u0441\u043e\u043c <a href=\"https:\/\/youtu.be\/54XLXg4fYsc\" rel=\"nofollow\">How To Tell If We&#8217;re Beating COVID-19<\/a> \u043e\u0442 <a href=\"https:\/\/www.youtube.com\/channel\/UCUHW94eEFW7hkUMVaZz4eDg\" rel=\"nofollow\">minutephysics<\/a>, \u044f \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u043b \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 (\u043e\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u0434\u0435\u043b) \u0432\u0440\u0435\u043c\u044f \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 <a href=\"https:\/\/yandex.ru\/web-maps\/covid19\" rel=\"nofollow\">\u041a\u0430\u0440\u0442\u044b \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441\u0430 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0438 \u043c\u0438\u0440\u0435<\/a> \u043e\u0442 <a href=\"https:\/\/yandex.ru\" rel=\"nofollow\">\u042f\u043d\u0434\u0435\u043a\u0441\u0430<\/a> \u0441\u0442\u0440\u043e\u0438\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u0438, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0442\u0435\u043c, \u0447\u0442\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/aatishb.com\/covidtrends\/\" rel=\"nofollow\">Covid Trends<\/a>. \u0412\u043e\u0442, \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e:<br \/>  <a href=\"https:\/\/himura.gitlab.io\/covid19\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z_\/vt\/m0\/z_vtm0bpldgaj8byuesj6dfye80.png\"><\/a><br \/>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e? \u041f\u043e\u0433\u043d\u0430\u043b\u0438!<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"gde-vzyat-dannye\">\u0413\u0434\u0435 \u0432\u0437\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043e\u0442 <strong>minutephysics<\/strong> \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432 \u0420\u043e\u0441\u0441\u0438\u0438, \u042f\u043d\u0434\u0435\u043a\u0441 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u043a\u0430\u0440\u0442\u0443 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0440\u0435\u0433\u0438\u043e\u043d\u0443. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/at\/ua\/qm\/atuaqmo5thxvkjnuyyfl-tnybkw.png\"><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0435\u043b\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0447\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043a\u0440\u0430\u0439\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e. \u042f \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u043e\u0441\u043e\u0431\u043e\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0431\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0442\u0430\u043a \u0447\u0442\u043e, \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u043a\u0430\u043a \u043d\u0430\u0448, \u043c\u043e\u043d\u0441\u0442\u0440\u0443\u043e\u0437\u043d\u044b\u0435 \u043f\u0430\u0440\u0441\u0435\u0440\u044b \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <strong>requests<\/strong> \u0438\u0434\u0443\u0442 \u043b\u0435\u0441\u043e\u043c. \u0422\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u044f\u0437\u044b\u043a\u0430, \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0434\u043a\u043e\u0440 (\u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0443\u0436 \u0438 \u0445\u0430\u0440\u0434\u043a\u043e\u0440, \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0435\u0441\u0442\u044c \u0432\u0441\u0451, \u0447\u0442\u043e \u043d\u0430\u0434\u043e, \u0438 \u0432\u0441\u0451 \u043a\u0440\u0430\u0439\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e):<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">from urllib.request import urlopen from html.parser import HTMLParser import json  class Covid19DataLoader(HTMLParser):     page_url = &quot;https:\/\/yandex.ru\/web-maps\/covid19&quot;      def __init__(self):         super().__init__()         self.config_found = False         self.config = None      def load(self):         with urlopen(self.page_url) as response:             page = response.read().decode(&quot;utf8&quot;)         self.feed(page)         return self.config['covidData']      def handle_starttag(self, tag, attrs):         if tag == 'script':             for k, v in attrs:                 if k == 'class' and v == 'config-view':                     self.config_found = True      def handle_data(self, data):         if self.config_found and not self.config:             self.config = json.loads(data)<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"kak-pomestit-dannye-na-stranicu\">\u041a\u0430\u043a \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443?<\/h2>\n<p>  <\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 \u043d\u0443\u0436\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/www.chartjs.org\/\" rel=\"nofollow\">Chart.js<\/a>. \u0412 \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b, \u043d\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u043a\u0440\u043e\u043c\u0435 <a href=\"https:\/\/docs.python.org\/3\/library\/string.html#template-strings\" rel=\"nofollow\">string.Template<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">def get_html(covid_data):     template_str = open(page_path, 'r', encoding='utf-8').read()     template = Template(template_str)     page = template.substitute(         covid_data=json.dumps(covid_data),         data_info=get_info(covid_data)     )     return page<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u043f\u043e \u043f\u0443\u0442\u0438 <code>page_path<\/code> \u043b\u0435\u0436\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;&lt;!-- ... --&gt;&lt;\/head&gt;     &lt;body&gt;     &lt;!-- ... --&gt;     &lt;div&gt;$data_info&lt;\/div&gt;     &lt;script type=&quot;text\/javascript&quot;&gt;         let covid_data = $covid_data         \/\/ ...     &lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0444\u0438\u0442! \u0414\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0436\u0435\u043a\u0442\u044f\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443! \u041c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440!<\/p>\n<p>  <\/p>\n<h2 id=\"kak-zayti-na-stranichku\">\u041a\u0430\u043a \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443?<\/h2>\n<p>  <\/p>\n<p>\u0412\u043e\u0442. \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 \u0447\u0438\u0441\u0442\u0435\u0439\u0448\u0435\u043c Python:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">from http.server import BaseHTTPRequestHandler from lib.data_loader import Covid19DataLoader from lib.page_maker import get_html  class Handler(BaseHTTPRequestHandler):     def do_GET(self):         if self.path == '\/':             self.send_response(200)             self.send_header('Content-Type', 'text\/html')             self.end_headers()             try:                 response = get_html(Covid19DataLoader().load())                 self.wfile.write(response.encode('utf-8'))             except Exception as e:                 self.send_error(500)                 print(f'{type(e).__name__}: {e}')         else:             self.send_error(404)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0430, \u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0430 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 <a href=\"https:\/\/about.gitlab.com\/stages-devops-lifecycle\/pages\/\" rel=\"nofollow\">GitLab Pages<\/a>, \u043d\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 <del>\u043a\u0430\u043d\u0430\u043b<\/del> \u0432\u043a\u043b\u0430\u0434\u043a\u0443!<\/p>\n<p>  <\/p>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043a\u043e\u0434\u0430 \u043c\u043e\u0433 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435, \u0447\u0442\u043e \u043d\u0443 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0430, \u0434\u0430 \u0438 \u0434\u043b\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0430\u0447\u043d\u043e\u0433\u043e \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c. <a href=\"https:\/\/gitlab.com\/himura\/covid19\/-\/blob\/master\/lib\/cacher.py\" rel=\"nofollow\">\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0444\u0430\u0439\u043b<\/a>. \u0414\u043b\u044f \u0438\u043d\u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043a\u044d\u0448\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437 cron). \u041f\u0440\u043e\u0449\u0435 \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c, \u0438 \u0432\u0435\u0434\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/p>\n<p>  <\/p>\n<h2 id=\"dannye-dlya-pravilnyh-grafikov\">\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432<\/h2>\n<p>  <\/p>\n<p>\u041a\u0430\u043a <del>\u0437\u0430<\/del>\u0432\u0435\u0449\u0430\u043b <a href=\"https:\/\/aatishb.com\/\" rel=\"nofollow\">Aatish Bhatia<\/a>, \u043f\u043e \u043e\u0441\u0438 Y \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043d\u0435\u0434\u0435\u043b\u044e, \u0430 \u043f\u043e \u043e\u0441\u0438 X \u2014 \u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u0440\u0430\u0436\u0451\u043d\u043d\u044b\u0445 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  <\/p>\n<p>\u0422\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u043d\u0435 \u0437\u0430 \u043d\u0435\u0434\u0435\u043b\u044e, \u0430 \u0437\u0430 3 \u0434\u043d\u044f, \u0447\u0442\u043e\u0431\u044b \u0433\u0440\u0430\u0444\u0438\u043a \u0431\u044b\u043b \u0431\u043e\u043b\u0435\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u043b \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e. \u0412\u043e\u043f\u0440\u043e\u0441 &quot;\u041a\u0430\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0431\u0440\u0430\u0442\u044c?&quot; \u043c\u043d\u043e\u044e \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0441\u044f, \u0435\u0441\u043b\u0438 \u0412\u0430\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0437\u044f\u0442\u044c \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u0435\u0435, \u0438 \u043a\u043e\u043b\u0435\u0431\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0442\u0443\u0434\u0430-\u0441\u044e\u0434\u0430 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043d\u0435\u0434\u0435\u043b\u044e) \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0448\u0430\u044e\u0442, \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u0435\u043d\u0442\u044b!<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">from datetime import timedelta from functools import reduce  y_axis_window = timedelta(days=3).total_seconds()  def get_cases_in_window(data, current_time):     window_open_time = current_time - y_axis_window     cases_in_window = list(filter(lambda s: window_open_time &lt;= s['ts'] &lt; current_time, data))     return cases_in_window  def differentiate(data):     result = [data[0]]     for prev_i, cur_sample in enumerate(data[1:]):         result.append({             'ts': cur_sample['ts'],             'value': cur_sample['value'] - data[prev_i]['value']         })     return result  def get_trend(histogram):     trend = []     new_cases = differentiate(histogram)     for sample in histogram:         current_time = sample['ts']         total_cases = sample['value']         new_cases_in_window = get_cases_in_window(new_cases, current_time)         total_new_cases_in_window = reduce(lambda a, c: a + c['value'], new_cases_in_window, 0)         trend.append({'x': total_cases,'y': total_new_cases_in_window})     return trend  def get_trends(data_items):     return { area['name']: get_trend(area['histogram']) for area in data_items }<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"frontend\">\u0424\u0440\u043e\u043d\u0442\u044d\u043d\u0434<\/h2>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e, \u0447\u0435\u043c \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f (\u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u043e\u043c \u043e\u0442 CSS Grid, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b), \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0432\u043e \u0444\u0440\u043e\u043d\u0442\u044d\u043d\u0434\u0435 \u0445\u0443\u0436\u0435 \u0432\u0441\u0435\u0433\u043e. \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u043d\u044f \u043c\u0451\u0440\u0436\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u043e\u043c, \u0435\u0441\u043b\u0438 \u044f \u0433\u0434\u0435-\u0442\u043e \u043d\u0430\u043a\u043e\u0441\u044f\u0447\u0438\u043b. <a href=\"https:\/\/gitlab.com\/himura\/covid19\/-\/blob\/master\/index.html\" rel=\"nofollow\">\u0412\u043e\u0442 \u043a\u043e\u0434<\/a>.<\/p>\n<p>  <\/p>\n<h2 id=\"kak-opublikovat-servis\">\u041a\u0430\u043a \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441?<\/h2>\n<p>  <\/p>\n<p>\u042f \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u043b\u044e Docker, \u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u0451\u043b \u043d\u0430 \u0443\u043c \u2014 \u0441\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0430 \u0441\u0432\u043e\u0439 VPS, \u043f\u043e\u0437\u0432\u0430\u0442\u044c <code>docker-compose up --build -d<\/code>, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c cron \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043a\u044d\u0448-\u0444\u0430\u0439\u043b\u0430 (\u0445\u043e\u0442\u044f \u043f\u043e\u0441\u0442\u043e\u0439\u0442\u0435, \u043a\u0430\u043a\u043e\u0439 \u043a\u0440\u043e\u043d \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430?? \u043b\u0430\u0434\u043d\u043e, \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f&#8230;), \u0438, \u0432\u043e\u043f\u0440\u0435\u043a\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u043c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e <a href=\"https:\/\/docs.python.org\/3\/library\/http.server.html\" rel=\"nofollow\">http.server<\/a> \u043d\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0430, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0440\u0442 \u0432\u043e \u0432\u043d\u0435\u0448\u043a\u0443. \u0410 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0442\u0440\u0430\u0432\u0438\u0442\u044c GitLab CI \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043f\u043e ssh (<a href=\"https:\/\/gitlab.com\/himura\/cheatsheets\/-\/blob\/master\/.gitlab-ci.yml\" rel=\"nofollow\">\u044f \u0441\u0442\u043e \u0440\u0430\u0437 \u0443\u0436\u0435 \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u043b<\/a>).<\/p>\n<p>  <\/p>\n<p>\u041d\u043e \u0442\u0443\u0442 \u044f \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0430\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440, <strong>\u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u0430<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0435\u0451 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b \u0438 \u0437\u0430\u0445\u043e\u0441\u0442\u0438\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0432 <a href=\"https:\/\/about.gitlab.com\/stages-devops-lifecycle\/pages\/\" rel=\"nofollow\">GitLab Pages<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">import os from lib.data_loader import Covid19DataLoader from lib.data_processor import get_trends from lib.page_maker import get_html  page_dir = 'public' page_name = 'index.html'  print('Updating Covid-19 data from Yandex...') raw_data = Covid19DataLoader().load() print('Calculating trends...') trends = get_trends(raw_data['items']) page = get_html({'raw_data': raw_data, 'trends': trends})  if not os.path.isdir(page_dir):     os.mkdir(page_dir) page_path = os.path.join(page_dir, page_name) open(page_path, 'w', encoding='utf-8').write(page) print(f'Page saved as &quot;{page_path}&quot;')<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u043f\u043e \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"https:\/\/himura.gitlab.io\/covid19\" rel=\"nofollow\">https:\/\/himura.gitlab.io\/covid19<\/a>, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 <code>.gitlab-ci.yml<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">image: python pages:     stage: deploy     only: [ master ]     script:         - python .\/get_static_html.py     artifacts:       paths: [ public ]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/gitlab.com\/help\/ci\/pipelines\/schedules\" rel=\"nofollow\">Pipeline Schedules<\/a>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3r\/bg\/cr\/3rbgcryogzot3j7neh-ielaikfm.png\"><\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/gitlab.com\/himura\/covid19\/-\/jobs\/545408722\" rel=\"nofollow\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a<\/a>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/us\/v0\/0z\/usv00zudbq_lnwvgle8he8e5j5e.png\"><\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/himura.gitlab.io\/covid19\" rel=\"nofollow\">\u0410 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u0435\u043f\u043b\u043e\u0439\u043c\u0435\u043d\u0442\u0430 \u2014 \u043a\u0430\u043a \u043d\u0430 \u041a\u0414\u041f\u0412<\/a>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z_\/vt\/m0\/z_vtm0bpldgaj8byuesj6dfye80.png\"><\/p>\n<p>  <\/p>\n<h2 id=\"vsyo\">\u0412\u0441\u0451?<\/h2>\n<p>  <\/p>\n<p>\u041a\u043e\u0434\u0441\u043d\u0438\u043f\u0435\u0442\u044b \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u044b, \u0430 \u0432\u0435\u0441\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0430 GitLab: <a href=\"https:\/\/gitlab.com\/himura\/covid19\" rel=\"nofollow\">https:\/\/gitlab.com\/himura\/covid19<\/a><\/p>\n<p>  <\/p>\n<p>\u042f \u043f\u043e\u0447\u0442\u0438 \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0443\u043f\u0443\u0441\u0442\u0438\u043b, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430 \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u0438 \u0441\u0442\u0430\u0442\u044c\u044e \u0432 \u0441\u0443\u043c\u043c\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 2 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0434\u043d\u044f. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0443\u043b\u0443\u0447\u0448\u0438\u043c \u0432 \u044d\u0442\u043e\u043c MVP, \u0435\u0441\u043b\u0438 \u0412\u0430\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \u041f\u0438\u0448\u0438\u0442\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u0431\u0430\u0433\u0438, \u0430 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u0451\u0440\u0436\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b. \u0412 \u0447\u0438\u0441\u043b\u0435 known issues:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u0442\u044b \u0432 \u0442\u0443\u043b\u0442\u0438\u043f \u0442\u043e\u0447\u043a\u0430\u043c<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e (\u0441 css grid \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0440\u0430\u0434\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e)<\/li>\n<li>\u0423\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043d\u0430\u0434\u043e<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0438\/\u0438\u043b\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0432\u0441\u043a\u043e\u0440\u0435 \u043c\u044b \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c, \u043a\u0430\u043a \u043b\u0438\u043d\u0438\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0443\u0441\u0442\u0440\u0435\u043c\u044f\u0442\u0441\u044f \u0432\u043d\u0438\u0437.<br \/>  \u0411\u0443\u0434\u044c\u0442\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044b \u0438 \u043d\u0435 \u0432\u043d\u043e\u0441\u0438\u0442\u0435 \u0432 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c!<\/p>\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\/501246\/\"> https:\/\/habr.com\/ru\/post\/501246\/<\/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\/501246\/\">\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0430 \u043f\u043e\u0432\u0441\u0435\u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 \u0438 \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u043c\u0438 \u043c\u044b \u0441\u0442\u0430\u043b\u0438 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0434\u043e\u0441\u0442\u044c \u043e\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u044b \u0437\u0430\u043f\u0438\u043b\u0438\u043c \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u0435\u043c\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432\u0430\u043d\u0438\u043b\u044c\u043d\u044b\u0435 Python \u0438 JavaScript, \u0430 \u0442\u0430\u043a\u0436\u0435, \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0438\u043c \u0435\u0433\u043e \u0432 <a href=\"https:\/\/about.gitlab.com\/stages-devops-lifecycle\/pages\/\" rel=\"nofollow\">GitLab Pages<\/a>. \u0411\u044b\u0441\u0442\u0440\u043e, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e, \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e.<br \/>  \u0412\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u0432\u0438\u0434\u043e\u0441\u043e\u043c <a href=\"https:\/\/youtu.be\/54XLXg4fYsc\" rel=\"nofollow\">How To Tell If We&#8217;re Beating COVID-19<\/a> \u043e\u0442 <a href=\"https:\/\/www.youtube.com\/channel\/UCUHW94eEFW7hkUMVaZz4eDg\" rel=\"nofollow\">minutephysics<\/a>, \u044f \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u043b \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 (\u043e\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u0434\u0435\u043b) \u0432\u0440\u0435\u043c\u044f \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 <a href=\"https:\/\/yandex.ru\/web-maps\/covid19\" rel=\"nofollow\">\u041a\u0430\u0440\u0442\u044b \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441\u0430 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0438 \u043c\u0438\u0440\u0435<\/a> \u043e\u0442 <a href=\"https:\/\/yandex.ru\" rel=\"nofollow\">\u042f\u043d\u0434\u0435\u043a\u0441\u0430<\/a> \u0441\u0442\u0440\u043e\u0438\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u0438, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0442\u0435\u043c, \u0447\u0442\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/aatishb.com\/covidtrends\/\" rel=\"nofollow\">Covid Trends<\/a>. \u0412\u043e\u0442, \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e:<br \/>  <a href=\"https:\/\/himura.gitlab.io\/covid19\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z_\/vt\/m0\/z_vtm0bpldgaj8byuesj6dfye80.png\"><\/a><br \/>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e? \u041f\u043e\u0433\u043d\u0430\u043b\u0438!<\/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-303326","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/303326","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=303326"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/303326\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=303326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=303326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=303326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}