{"id":296899,"date":"2020-01-09T15:00:23","date_gmt":"2020-01-09T15:00:23","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296899"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296899","title":{"rendered":"\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 Google Sheets \u043d\u0430 Python. \u041e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/483302\/\">\u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u044f \u043e\u0431\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Excel, \u043d\u043e \u043c\u043e\u0434\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0445\u043e\u0442\u044f\u0442 \u0432 \u043e\u0431\u043b\u0430\u043a\u0430.<\/p>\n<p>  \u041d\u0430\u0447\u0430\u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0440\u044f\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 Python, \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u043c\u0435\u043d\u0438\u0442\u044c (\u0438\u043b\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c) Excel \u0447\u0435\u043c-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0431\u043e\u0442\u044b c \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438 Google \u0438\u0437 Python, \u0442\u043e \u043f\u0440\u0435\u0431\u044b\u0432\u0430\u043b \u0432 \u0438\u043b\u043b\u044e\u0437\u0438\u0438, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043f\u0430\u0440\u0443 \u043a\u043b\u0438\u043a\u043e\u0432. \u0420\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043c\u0435\u043d\u0435\u0435 \u0440\u0430\u0434\u0443\u0436\u043d\u043e\u0439, \u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0433\u043b\u043e\u0431\u0443\u0441\u0430 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442.<\/p>\n<p>  \u041c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/305378\">\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e Google-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0438\u0437 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Google Sheets API v4)<\/a><\/li>\n<li><a href=\"http:\/\/italylov.ru\/blog\/all\/probuem-rabotat-s-google-sheets-api\/\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Google Sheets API v4\/<\/a><\/li>\n<li><a href=\"http:\/\/datalytics.ru\/all\/rabotaem-s-api-google-drive-s-pomoschyu-python\/\">\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 API Google Drive \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python<\/a><\/li>\n<\/ul>\n<p>  \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u2013 \u043a\u043e\u0433\u0434\u0430 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0437\u0430 \u0447\u0442\u043e-\u0442\u043e \u0431\u0435\u0440\u0435\u0448\u044c\u0441\u044f, \u0442\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0448\u044c\u0441\u044f \u0441 \u043c\u0430\u0441\u0441\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u043b\u0438\u0448\u044c \u043d\u0435\u0434\u043e\u0443\u043c\u0435\u043d\u0438\u0435 \u2013 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e \u0436\u0435!<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0448\u0435\u043b \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c \u2013 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0432\u044b \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u0435.<\/p>\n<p>  \u0412\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0441 Windows + Python 3.6.6, \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f Jupyter Notebook.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. \u041d\u0430\u0439\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0442\u0440\u0443\u0434\u0430.<\/p>\n<p>  \u041a\u043e\u0434, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435, \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <a href=\"https:\/\/github.com\/ovkgit\/google_sheets_python\">\u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445 Google \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/h2>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 Google, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p>  <a href=\"https:\/\/developers.google.com\/sheets\/\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 gmail.com (\u044d\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e). \u041f\u043e\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 (\u0442\u0430\u043a Google \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0432\u043e\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c).<\/p>\n<p>  \u042d\u0442\u043e \u0434\u043e\u043b\u0433\u0438\u0439 \u0438 \u043d\u0443\u0434\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043e\u0442 Google \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0435 \u0441\u0430\u043c\u044b\u043c\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0438 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c\u0438 (\u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0447\u0438\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c Google+ \u043d\u0435 \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435).<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"https:\/\/console.developers.google.com\/cloud-resource-manager\">console.developers.google.com\/cloud-resource-manager<\/a> \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fi\/-w\/y6\/fi-wy693xsw54m-xh7jnh-17ble.jpeg\"\/><\/p>\n<p>  \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pq\/li\/wq\/pqliwqiudct5g7s6q_rm6iag6tw.jpeg\"\/><\/p>\n<p>  \u0412 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 \u043c\u0435\u043d\u044e \u00ab\u041f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430\u00bb<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3z\/pr\/yb\/3zprybr3paa7eqi5sxsurdt_aq8.jpeg\"\/><\/p>\n<p>  \u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u00bb, \u0432\u043d\u0435\u0441\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 email \u0441 \u0434\u043e\u043c\u0435\u043d\u0430 gmail.com \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0433\u0440\u0443\u043f\u043f\u0443 \u00ab\u041f\u0440\u043e\u0435\u043a\u0442\u00bb \u2014 \u00ab\u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fu\/4a\/cl\/fu4aclu3gibqg8-1rae94sovf08.jpeg\"\/><\/p>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c, \u0447\u0442\u043e \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u043e \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d\u044b \u0441\u0430\u043c\u0438 \u0441\u0435\u0431\u0435 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430. \u0418 \u044d\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u0443\u0442\u044c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u043d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0430\u0434\u043e.<\/p>\n<p>  \u0421\u043d\u043e\u0432\u0430 \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"https:\/\/console.developers.google.com\/cloud-resource-manager\">console.developers.google.com\/cloud-resource-manager<\/a><\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043c\u0435\u043d\u044e \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_p\/dx\/al\/_pdxalr_zhciudnkssxnej4iybo.jpeg\"\/><\/p>\n<p>  \u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u00ab\u0421\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b\u00bb, \u0430 \u0437\u0430\u0442\u0435\u043c \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/8e\/ss\/t-\/8esst-mi2_3ioiylkv5ej1itpxu.jpeg\"\/><\/p>\n<p>  \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4h\/fe\/18\/4hfe18ts9ywn44bevocl3-fpsue.jpeg\"\/><\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u043e\u043b\u044c \u00ab\u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446\u00bb \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/0x\/d9\/sx\/0xd9sxloeigykugl41pdx_qgp64.jpeg\"\/><\/p>\n<p>  \u0412 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pv\/jc\/xk\/pvjcxkvp6mjwda30w3uorjkbex4.jpeg\"\/><\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0438\u043f \u043a\u043b\u044e\u0447\u0430 \u00abjson\u00bb \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/75\/sz\/3l\/75sz3lffo7nr8119jrpu-vvm1i8.jpeg\"\/><\/p>\n<p>  \u0411\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0438 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043d \u0444\u0430\u0439\u043b \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0435\u0433\u043e, \u0438\u043c\u0435\u043d\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0435\u043c\u0443 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c Google.<\/p>\n<p>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0441 \u0442\u0440\u0435\u043c\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0448\u0442\u0440\u0438\u0445\u0430\u043c\u0438, \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u043d\u0430\u0434\u043f\u0438\u0441\u0438 \u00abGoogle APIs\u00bb, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u00abAPI \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b\u00bb, \u0430 \u0432 \u043d\u0435\u043c \u043f\u043e\u0434\u043f\u0443\u043d\u043a\u0442 \u00ab\u041f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/n9\/0c\/gh\/n90cgh2hyrqigsxjus02cwhrt-c.jpeg\"\/><\/p>\n<p>  \u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c API \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/w8\/3f\/wc\/w83fwcm2h2zcq4qza3pysyjhseu.jpeg\"\/><\/p>\n<p>  \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0438\u0441\u043a\u0430 \u00abgoogle drive\u00bb \u0438 \u043a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u00abGoogle Drive API\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fj\/ks\/iw\/fjksiwvxazgd-6erfruqwrwq8os.jpeg\"\/><\/p>\n<p>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jk\/f-\/ys\/jkf-ysfiu--oqojyf8vi1lwphao.jpeg\"\/><\/p>\n<p>  \u0421\u0430\u0439\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u0438\u0442 \u0432\u0430\u0441, \u0447\u0442\u043e API \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0418\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 (\u0432\u0435\u0434\u044c \u043c\u044b \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/se\/e4\/z4\/see4z4tacpn3manmkn_tixgkgck.jpeg\"\/><\/p>\n<p>  \u0421\u043d\u043e\u0432\u0430 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/c0\/ak\/ln\/c0aklnjxew9zwlph6fgp1ym-yt8.jpeg\"\/><\/p>\n<p>  \u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c API \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/w8\/3f\/wc\/w83fwcm2h2zcq4qza3pysyjhseu.jpeg\"\/><\/p>\n<p>  \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0438\u0441\u043a\u0430 \u00absheet\u00bb \u0438 \u043a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u00abGoogle Sheets API\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/img\/Task09_17.jpg\"\/><\/p>\n<p>  \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e API \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e. \u041e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 Google Drive API. \u0415\u0441\u043b\u0438 \u043e\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 API\u00bb, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u00bb. \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0435\u0433\u043e, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"https:\/\/console.developers.google.com\/cloud-resource-manager\">console.developers.google.com\/cloud-resource-manager<\/a><\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043c\u0435\u043d\u044e \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ov\/ue\/i6\/ovuei6xocepbhtqmgs8ydb9tbt4.jpeg\"\/><br \/>  \u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u00ab\u0421\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b\u00bb, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 email \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430. \u041e\u043d \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0430\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qh\/p5\/yr\/qhp5yrn74itkqnbwkvtstlcjwha.jpeg\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code class=\"bash\">pip3 install --upgrade google-api-python-client<\/code><\/pre>\n<p>  \u0430 \u0437\u0430\u0442\u0435\u043c<\/p>\n<pre><code class=\"bash\">pip3 install oauth2client<\/code><\/pre>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 oauth2client \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430.<\/p>\n<p>  \u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"https:\/\/raw.githubusercontent.com\/gsuitedevs\/python-samples\/master\/sheets\/quickstart\/quickstart.py\">raw.githubusercontent.com\/gsuitedevs\/python-samples\/master\/sheets\/quickstart\/quickstart.py<\/a><\/p>\n<p>  \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043c\u044b\u0448\u043a\u0438 \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u00ab\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/t7\/z5\/mv\/t7z5mvudm8lmipgvbcxsjn6jsr4.jpeg\"\/><\/p>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c quickstart.py<\/p>\n<p>  \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0435\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code class=\"python\">python quickstart.py<\/code><\/pre>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d \u0441\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430\u044f, \u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0438\u0434\u0438\u0442\u0435 \u0432\u043f\u0435\u0440\u0435\u0434) \u0438 \u0432\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u044f.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0448 \u043f\u0443\u0442\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d.<\/p>\n<h2>\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/h2>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443<\/p>\n<pre><code class=\"python\"># \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 import httplib2  import apiclient.discovery from oauth2client.service_account import ServiceAccountCredentials\t  CREDENTIALS_FILE = 'seraphic-effect-248407-7ac2c44ec709.json'  # \u0418\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0441 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0435  # \u0427\u0438\u0442\u0430\u0435\u043c \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 credentials = ServiceAccountCredentials.from_json_keyfile_name(CREDENTIALS_FILE, ['https:\/\/www.googleapis.com\/auth\/spreadsheets', 'https:\/\/www.googleapis.com\/auth\/drive'])  httpAuth = credentials.authorize(httplib2.Http()) # \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 service = apiclient.discovery.build('sheets', 'v4', http = httpAuth) # \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438 \u0438 4 \u0432\u0435\u0440\u0441\u0438\u044e API   spreadsheet = service.spreadsheets().create(body = {     'properties': {'title': '\u041f\u0435\u0440\u0432\u044b\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442', 'locale': 'ru_RU'},     'sheets': [{'properties': {'sheetType': 'GRID',                                'sheetId': 0,                                'title': '\u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d',                                'gridProperties': {'rowCount': 100, 'columnCount': 15}}}] }).execute() spreadsheetId = spreadsheet['spreadsheetId'] # \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430 print('https:\/\/docs.google.com\/spreadsheets\/d\/' + spreadsheetId) <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u2014 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443. <\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430, \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 spreadsheetId \u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c. <\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043f\u043e \u043d\u0435\u0439. Google \u0441\u043e\u043e\u0431\u0449\u0438\u0442 \u0432\u0430\u043c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/y0\/n7\/te\/y0n7te-mweqjhzr_9eg0gqsj50q.jpeg\"\/><\/p>\n<p>  \u041d\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435! \u0412\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0430\u0434\u0440\u0435\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c Google \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443. \u0410 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u0434\u0440\u0435\u0441 \u043d\u0435\u043b\u044c\u0437\u044f. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.<\/p>\n<p>  \u041d\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0434\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 Google Drive. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 my_test_address@gmail.com \u043d\u0430 \u0441\u0432\u043e\u0439.<\/p>\n<pre><code class=\"python\">driveService = apiclient.discovery.build('drive', 'v3', http = httpAuth) # \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 Google Drive \u0438 3 \u0432\u0435\u0440\u0441\u0438\u044e API access = driveService.permissions().create(     fileId = spreadsheetId,     body = {'type': 'user', 'role': 'writer', 'emailAddress': 'my_test_address@gmail.com'},  # \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043d\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435     fields = 'id' ).execute()<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f, \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u044e \u0438 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434 \u2014 spreadsheetId \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u0432 URL-\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u00abhttps:\/\/docs.google.com\/spreadsheets\/d\/\u00bb \u0438 \u00ab\/edit#gid=0\u00bb).<\/p>\n<p>  \u041c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0435\u0433\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 spreadsheetId \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0431\u0443\u0434\u0435\u043c \u0441 \u043d\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438.<\/p>\n<p>  \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0444\u0430\u0439\u043b\u0435 (spreadsheet) \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043b\u0438\u0441\u0442\u044b-\u0432\u043a\u043b\u0430\u0434\u043a\u0438 (sheet).<\/p>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 sheet \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u043a\u043e\u0434 (sheetId). \u0423 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u043b\u0438\u0441\u0442\u0430 \u044d\u0442\u043e\u0442 Id \u0440\u0430\u0432\u0435\u043d 0. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u0441\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0435 \u043e\u0442 \u043d\u0443\u043b\u044f Id (\u0442.\u0435. \u043e\u043d\u0438 \u043d\u0435 \u043d\u0443\u043c\u0435\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u043e\u0434\u0440\u044f\u0434).<\/p>\n<p>  \u0423\u0431\u0435\u0434\u0438\u043c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c<\/p>\n<pre><code class=\"python\"># \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043b\u0438\u0441\u0442\u0430 results = service.spreadsheets().batchUpdate(     spreadsheetId = spreadsheetId,     body =  {   &quot;requests&quot;: [     {       &quot;addSheet&quot;: {         &quot;properties&quot;: {           &quot;title&quot;: &quot;\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043b\u0438\u0441\u0442&quot;,           &quot;gridProperties&quot;: {             &quot;rowCount&quot;: 20,             &quot;columnCount&quot;: 12           }         }       }     }   ] }).execute()   # \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u0438\u0441\u0442\u043e\u0432, \u0438\u0445 Id \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 spreadsheet = service.spreadsheets().get(spreadsheetId = spreadsheetId).execute() sheetList = spreadsheet.get('sheets') for sheet in sheetList:     print(sheet['properties']['sheetId'], sheet['properties']['title'])      sheetId = sheetList[0]['properties']['sheetId']  print('\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0441\u0442 \u0441 Id = ', sheetId) <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<blockquote><p>0 \u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d<br \/>  415832263 \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043b\u0438\u0441\u0442<br \/>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0441\u0442 \u0441 Id = 0<\/p><\/blockquote>\n<p>  \u0412 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043f\u0435\u0440\u0432\u044b\u0439 \u043b\u0438\u0441\u0442 \u0438\u043c\u0435\u0435\u0442 Id \u0440\u0430\u0432\u043d\u044b\u0439 \u043d\u0443\u043b\u044e, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d \u0438\u043d\u0430\u0447\u0435.<\/p>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0430\u043a \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b \u044f\u0447\u0435\u0435\u043a. \u0412\u0438\u0434\u0438\u043c\u043e, \u0442\u0430\u0431\u043b\u0438\u0446\u044b Google \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432 \u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u041f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044f\u0447\u0435\u0435\u043a \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438.<\/p>\n<p>  \u0412\u0430\u0440\u0438\u0430\u043d\u0442 1: \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u00ab\u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d!B2:D5\u00bb, \u0442.\u0435. \u0438\u043c\u044f \u043b\u0438\u0441\u0442\u0430, \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0433\u043e \u0432\u043e\u0441\u043a\u043b\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u043d\u0430\u043a, \u043f\u043e\u0441\u043b\u0435 \u2014 \u043b\u0435\u0432\u0430\u044f \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u044f\u0447\u0435\u0439\u043a\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab\u0431\u0443\u043a\u0432\u0430 (\u043a\u043e\u043b\u043e\u043d\u043a\u0430) + \u0446\u0438\u0444\u0440\u0430 (\u0441\u0442\u0440\u043e\u043a\u0430)\u00bb + \u043f\u0440\u0430\u0432\u0430\u044f \u043d\u0438\u0436\u043d\u044f\u044f \u044f\u0447\u0435\u0439\u043a\u0430 \u0432 \u0442\u0430\u043a\u043e\u043c \u0436\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<pre><code class=\"python\">{&quot;range&quot;: &quot;\u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d!B2:D5&quot;}<\/code><\/pre>\n<p>  \u0412\u0430\u0440\u0438\u0430\u043d\u0442 2: \u0432 json-\u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c ID \u043b\u0438\u0441\u0442\u0430 \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0438 \u043f\u0440\u0430\u0432\u043e\u0439 \u043d\u0438\u0436\u043d\u0435\u0439 \u044f\u0447\u0435\u0435\u043a \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u0432\u0438\u0434\u0435 (\u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u043e\u043b\u0431\u0446\u0430)<\/p>\n<pre><code class=\"python\">{&quot;range&quot;:     {     &quot;sheetId&quot;: sheetId, # ID \u043b\u0438\u0441\u0442\u0430     &quot;startRowIndex&quot;: 1, # \u0421\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u043e\u043c\u0435\u0440 startRowIndex      &quot;endRowIndex&quot;: 5,# \u043f\u043e endRowIndex - 1 (endRowIndex \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442!)     &quot;startColumnIndex&quot;: 0, # \u0421\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u043d\u043e\u043c\u0435\u0440 startColumnIndex      &quot;endColumnIndex&quot;: 1 # \u043f\u043e endColumnIndex - 1     }}<\/code><\/pre>\n<p>  \u0420\u0430\u0437\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u043c\u043a\u0443 \u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438.<\/p>\n<pre><code class=\"python\">results = service.spreadsheets().values().batchUpdate(spreadsheetId = spreadsheetId, body = {     &quot;valueInputOption&quot;: &quot;USER_ENTERED&quot;, # \u0414\u0430\u043d\u043d\u044b\u0435 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f, \u043a\u0430\u043a \u0432\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c (\u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0443\u043b)     &quot;data&quot;: [         {&quot;range&quot;: &quot;\u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d!B2:D5&quot;,          &quot;majorDimension&quot;: &quot;ROWS&quot;,     # \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438, \u0437\u0430\u0442\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u044b          &quot;values&quot;: [                     [&quot;\u042f\u0447\u0435\u0439\u043a\u0430 B2&quot;, &quot;\u042f\u0447\u0435\u0439\u043a\u0430 C2&quot;, &quot;\u042f\u0447\u0435\u0439\u043a\u0430 D2&quot;], # \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443                     ['25', &quot;=6*6&quot;, &quot;=sin(3,14\/2)&quot;]  # \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443                    ]}     ] }).execute()<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0447\u0435\u0435\u043a \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0422.\u043a. \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 USER_ENTERED, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a, \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u044f\u043b\u0430 \u0431\u044b \u0432\u0432\u043e\u0434 \u0440\u0443\u043a\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2014 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0447\u0438\u0441\u043b\u0430, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u043e \u0437\u043d\u0430\u043a\u0430 \u00ab\u0440\u0430\u0432\u043d\u043e\u00bb \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u044b.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u0432\u0430\u0448\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u043e\u043d\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043b\u0430\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ob\/3h\/h_\/ob3hh_l6npzamjxabctqph8lrny.jpeg\"\/><\/p>\n<p>  \u0417\u0430\u0434\u0430\u0434\u0438\u043c \u0448\u0438\u0440\u0438\u043d\u0443 \u043a\u043e\u043b\u043e\u043d\u043e\u043a. \u0424\u0443\u043d\u043a\u0446\u0438\u044f batchUpdate \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u0440\u0430\u0437\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u044b \u043e\u0434\u043d\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0448\u0438\u0440\u0438\u043d\u0443 \u0442\u0440\u0435\u0445 \u0433\u0440\u0443\u043f\u043f \u043a\u043e\u043b\u043e\u043d\u043e\u043a. \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u0435 \u043e\u0434\u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0430, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0434\u0432\u0435.<\/p>\n<pre><code class=\"python\">results = service.spreadsheets().batchUpdate(spreadsheetId = spreadsheetId, body = {   &quot;requests&quot;: [      # \u0417\u0430\u0434\u0430\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 A: 20 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439     {       &quot;updateDimensionProperties&quot;: {         &quot;range&quot;: {           &quot;sheetId&quot;: sheetId,           &quot;dimension&quot;: &quot;COLUMNS&quot;,  # \u0417\u0430\u0434\u0430\u0435\u043c \u0448\u0438\u0440\u0438\u043d\u0443 \u043a\u043e\u043b\u043e\u043d\u043a\u0438           &quot;startIndex&quot;: 0, # \u041d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0443\u043b\u044f           &quot;endIndex&quot;: 1 # \u0421\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u043d\u043e\u043c\u0435\u0440 startIndex \u043f\u043e endIndex - 1 (endIndex \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442!)         },         &quot;properties&quot;: {           &quot;pixelSize&quot;: 20 # \u0428\u0438\u0440\u0438\u043d\u0430 \u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u044f\u0445         },         &quot;fields&quot;: &quot;pixelSize&quot; # \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 pixelSize         }     },      # \u0417\u0430\u0434\u0430\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 B \u0438 C: 150 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439     {       &quot;updateDimensionProperties&quot;: {         &quot;range&quot;: {           &quot;sheetId&quot;: sheetId,           &quot;dimension&quot;: &quot;COLUMNS&quot;,           &quot;startIndex&quot;: 1,           &quot;endIndex&quot;: 3         },         &quot;properties&quot;: {           &quot;pixelSize&quot;: 150         },         &quot;fields&quot;: &quot;pixelSize&quot;       }     },      # \u0417\u0430\u0434\u0430\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 D: 200 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439     {       &quot;updateDimensionProperties&quot;: {         &quot;range&quot;: {           &quot;sheetId&quot;: sheetId,           &quot;dimension&quot;: &quot;COLUMNS&quot;,           &quot;startIndex&quot;: 3,           &quot;endIndex&quot;: 4         },         &quot;properties&quot;: {           &quot;pixelSize&quot;: 200         },         &quot;fields&quot;: &quot;pixelSize&quot;       }     }   ] }).execute()<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0448\u0438\u0440\u0438\u043d\u044b \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wu\/zv\/h4\/wuzvh4jz9uloyxlkhfnxqk7otke.jpeg\"\/><\/p>\n<p>  \u041d\u0430\u0440\u0438\u0441\u0443\u0435\u043c \u0440\u0430\u043c\u043a\u0443 \u0432\u043e\u043a\u0440\u0443\u0433 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/p>\n<pre><code class=\"python\"># \u0420\u0438\u0441\u0443\u0435\u043c \u0440\u0430\u043c\u043a\u0443 results = service.spreadsheets().batchUpdate(     spreadsheetId = spreadsheetId,     body = {         &quot;requests&quot;: [             {'updateBorders': {'range': {'sheetId': sheetId,                              'startRowIndex': 1,                              'endRowIndex': 3,                              'startColumnIndex': 1,                              'endColumnIndex': 4},                    'bottom': {                      # \u0417\u0430\u0434\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b                               'style': 'SOLID', # \u0421\u043f\u043b\u043e\u0448\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f                               'width': 1,       # \u0428\u0438\u0440\u0438\u043d\u043e\u0439 1 \u043f\u0438\u043a\u0441\u0435\u043b\u044c                               'color': {'red': 0, 'green': 0, 'blue': 0, 'alpha': 1}}, # \u0427\u0435\u0440\u043d\u044b\u0439 \u0446\u0432\u0435\u0442                    'top': {                     # \u0417\u0430\u0434\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u043d\u0438\u0436\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b                               'style': 'SOLID',                               'width': 1,                               'color': {'red': 0, 'green': 0, 'blue': 0, 'alpha': 1}},                    'left': { # \u0417\u0430\u0434\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u043b\u0435\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b                               'style': 'SOLID',                               'width': 1,                               'color': {'red': 0, 'green': 0, 'blue': 0, 'alpha': 1}},                    'right': {                     # \u0417\u0430\u0434\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b                               'style': 'SOLID',                               'width': 1,                               'color': {'red': 0, 'green': 0, 'blue': 0, 'alpha': 1}},                    'innerHorizontal': {                     # \u0417\u0430\u0434\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043b\u0438\u043d\u0438\u0439                               'style': 'SOLID',                               'width': 1,                               'color': {'red': 0, 'green': 0, 'blue': 0, 'alpha': 1}},                    'innerVertical': {                     # \u0417\u0430\u0434\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043b\u0438\u043d\u0438\u0439                               'style': 'SOLID',                               'width': 1,                               'color': {'red': 0, 'green': 0, 'blue': 0, 'alpha': 1}}                                                              }}         ]     }).execute() <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7v\/8l\/db\/7v8ldbkjnukd2j6lukhezmaupje.jpeg\"\/><\/p>\n<p>  \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u044f\u0447\u0435\u0439\u043a\u0438 \u043d\u0430\u0434 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0438 \u0432\u043f\u0438\u0448\u0435\u043c \u0432 \u043d\u0438\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a<\/p>\n<pre><code class=\"python\"># \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u044f\u0447\u0435\u0439\u043a\u0438 A2:D1 results = service.spreadsheets().batchUpdate(     spreadsheetId = spreadsheetId,     body = {         &quot;requests&quot;: [             {'mergeCells': {'range': {'sheetId': sheetId,                           'startRowIndex': 0,                           'endRowIndex': 1,                           'startColumnIndex': 1,                           'endColumnIndex': 4},                 'mergeType': 'MERGE_ALL'}}         ]     }).execute() # \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b results = service.spreadsheets().values().batchUpdate(spreadsheetId = spreadsheetId, body = {     &quot;valueInputOption&quot;: &quot;USER_ENTERED&quot;, # \u0414\u0430\u043d\u043d\u044b\u0435 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f, \u043a\u0430\u043a \u0432\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c (\u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0443\u043b)     &quot;data&quot;: [         {&quot;range&quot;: &quot;\u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d!B1&quot;,          &quot;majorDimension&quot;: &quot;ROWS&quot;, # \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438, \u0437\u0430\u0442\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u044b          &quot;values&quot;: [[&quot;\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b&quot; ]                     ]}     ] }).execute() <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ba\/pi\/tq\/bapitq07wcnkdodrbmodxssvvl8.jpeg\"\/><\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0444\u043e\u0440\u043c\u0430\u0442 \u0443 \u044f\u0447\u0435\u0435\u043a \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/p>\n<pre><code class=\"python\"># \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u044f\u0447\u0435\u0435\u043a results = service.spreadsheets().batchUpdate(     spreadsheetId = spreadsheetId,     body =  {   &quot;requests&quot;:    [     {       &quot;repeatCell&quot;:        {         &quot;cell&quot;:          {           &quot;userEnteredFormat&quot;:            {             &quot;horizontalAlignment&quot;: 'CENTER',             &quot;backgroundColor&quot;: {                 &quot;red&quot;: 0.8,                 &quot;green&quot;: 0.8,                 &quot;blue&quot;: 0.8,                 &quot;alpha&quot;: 1             },             &quot;textFormat&quot;:              {                &quot;bold&quot;: True,                &quot;fontSize&quot;: 14              }           }         },         &quot;range&quot;:          {           &quot;sheetId&quot;: sheetId,           &quot;startRowIndex&quot;: 1,           &quot;endRowIndex&quot;: 2,           &quot;startColumnIndex&quot;: 1,           &quot;endColumnIndex&quot;: 4         },         &quot;fields&quot;: &quot;userEnteredFormat&quot;       }     }   ] }).execute() <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/an\/mx\/ix\/anmxixf0r8g3tgobvulohsg3w5i.jpeg\"\/><\/p>\n<p>  \u0415\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u0438\u043b\u0438 \u0446\u0432\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u044f\u0447\u0435\u0435\u043a \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<pre><code class=\"python\">ranges = [&quot;\u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d!C2:C2&quot;] #             results = service.spreadsheets().get(spreadsheetId = spreadsheetId,                                       ranges = ranges, includeGridData = True).execute() print('\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435') print(results['properties']) print('\\n\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u0440\u0430\u0441\u043a\u0440\u0430\u0441\u043a\u0430') print(results['sheets'][0]['data'][0]['rowData'] ) print('\\n\u0412\u044b\u0441\u043e\u0442\u0430 \u044f\u0447\u0435\u0439\u043a\u0438') print(results['sheets'][0]['data'][0]['rowMetadata']) print('\\n\u0428\u0438\u0440\u0438\u043d\u0430 \u044f\u0447\u0435\u0439\u043a\u0438') print(results['sheets'][0]['data'][0]['columnMetadata']) <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u043e\u0442\u0432\u0435\u0442  <\/p>\n<blockquote><p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<br \/>  {&#8216;title&#8217;: &#8216;\u041f\u0435\u0440\u0432\u044b\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442&#8217;, &#8216;locale&#8217;: &#8216;ru_RU&#8217;, &#8216;autoRecalc&#8217;: &#8216;ON_CHANGE&#8217;, &#8216;timeZone&#8217;: &#8216;Etc\/GMT&#8217;, &#8216;defaultFormat&#8217;: {&#8216;backgroundColor&#8217;: {&#8216;red&#8217;: 1, &#8216;green&#8217;: 1, &#8216;blue&#8217;: 1}, &#8216;padding&#8217;: {&#8216;top&#8217;: 2, &#8216;right&#8217;: 3, &#8216;bottom&#8217;: 2, &#8216;left&#8217;: 3}, &#8216;verticalAlignment&#8217;: &#8216;BOTTOM&#8217;, &#8216;wrapStrategy&#8217;: &#8216;OVERFLOW_CELL&#8217;, &#8216;textFormat&#8217;: {&#8216;foregroundColor&#8217;: {}, &#8216;fontFamily&#8217;: &#8216;arial,sans,sans-serif&#8217;, &#8216;fontSize&#8217;: 10, &#8216;bold&#8217;: False, &#8216;italic&#8217;: False, &#8216;strikethrough&#8217;: False, &#8216;underline&#8217;: False}}}<\/p>\n<p>  \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u0440\u0430\u0441\u043a\u0440\u0430\u0441\u043a\u0430<br \/>  [{&#8216;values&#8217;: [{&#8216;userEnteredValue&#8217;: {&#8216;stringValue&#8217;: &#8216;\u042f\u0447\u0435\u0439\u043a\u0430 C2&#8217;}, &#8216;effectiveValue&#8217;: {&#8216;stringValue&#8217;: &#8216;\u042f\u0447\u0435\u0439\u043a\u0430 C2&#8217;}, &#8216;formattedValue&#8217;: &#8216;\u042f\u0447\u0435\u0439\u043a\u0430 C2&#8217;, &#8216;userEnteredFormat&#8217;: {&#8216;backgroundColor&#8217;: {&#8216;red&#8217;: 1, &#8216;green&#8217;: 0.6}, &#8216;horizontalAlignment&#8217;: &#8216;CENTER&#8217;, &#8216;textFormat&#8217;: {&#8216;fontSize&#8217;: 14, &#8216;bold&#8217;: True, &#8216;italic&#8217;: True}}, &#8216;effectiveFormat&#8217;: {&#8216;backgroundColor&#8217;: {&#8216;red&#8217;: 1, &#8216;green&#8217;: 0.6}, &#8216;padding&#8217;: {&#8216;top&#8217;: 2, &#8216;right&#8217;: 3, &#8216;bottom&#8217;: 2, &#8216;left&#8217;: 3}, &#8216;horizontalAlignment&#8217;: &#8216;CENTER&#8217;, &#8216;verticalAlignment&#8217;: &#8216;BOTTOM&#8217;, &#8216;wrapStrategy&#8217;: &#8216;OVERFLOW_CELL&#8217;, &#8216;textFormat&#8217;: {&#8216;foregroundColor&#8217;: {}, &#8216;fontFamily&#8217;: &#8216;Arial&#8217;, &#8216;fontSize&#8217;: 14, &#8216;bold&#8217;: True, &#8216;italic&#8217;: True, &#8216;strikethrough&#8217;: False, &#8216;underline&#8217;: False}, &#8216;hyperlinkDisplayType&#8217;: &#8216;PLAIN_TEXT&#8217;}}]}]<\/p>\n<p>  \u0412\u044b\u0441\u043e\u0442\u0430 \u044f\u0447\u0435\u0439\u043a\u0438<br \/>  [{&#8216;pixelSize&#8217;: 21}]<\/p>\n<p>  \u0428\u0438\u0440\u0438\u043d\u0430 \u044f\u0447\u0435\u0439\u043a\u0438<br \/>  [{&#8216;pixelSize&#8217;: 150}]  <\/p><\/blockquote>\n<p> \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044f\u0447\u0435\u0439\u043a\u0438 C2. \u041c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0448\u0440\u0438\u0444\u0442 \u0438 \u0446\u0432\u0435\u0442 \u0437\u0430\u043b\u0438\u0432\u043a\u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e (\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435), \u0432 \u043f\u043e\u0442\u043e\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u043a\u0430\u043a \u043e\u043d\u0438 \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 json.<\/p>\n<h2>\u0427\u0442\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/h2>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u043c\u0435\u0440\u0435, \u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043b \u044f\u0447\u0435\u0439\u043a\u0438 B4, C7 \u0438 D5 \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ms\/yc\/ph\/msycphwvaxu8x49rvc2vq6zwdfo.jpeg\"\/><\/p>\n<p>  \u041a\u043e\u0434 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<pre><code class=\"python\">ranges = [&quot;\u041b\u0438\u0441\u0442 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d!A2:F8&quot;] #             results = service.spreadsheets().values().batchGet(spreadsheetId = spreadsheetId,                                       ranges = ranges,                                       valueRenderOption = 'FORMATTED_VALUE',                                        dateTimeRenderOption = 'FORMATTED_STRING').execute()  sheet_values = results['valueRanges'][0]['values'] print(sheet_values)<\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442  <\/p>\n<blockquote><p>[[&#187;, &#8216;\u042f\u0447\u0435\u0439\u043a\u0430 B2&#8217;, &#8216;\u042f\u0447\u0435\u0439\u043a\u0430 C2&#8217;, &#8216;\u042f\u0447\u0435\u0439\u043a\u0430 D2&#8242;], [&#187;, &#8217;25&#8217;, &#8217;36&#8217;, &#8216;0,9999996829&#8217;]]<\/p><\/blockquote>\n<p>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438: <i>valueRenderOption<\/i> \u2014 \u0444\u043e\u0440\u043c\u0430\u0442 \u0447\u0442\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<ul>\n<li><b>FORMATTED_VALUE<\/b> \u2014 \u0447\u0442\u0435\u043d\u0438\u0435 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u0422.\u0435. \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u0438\u0434\u043d\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0442\u043e \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 D3 \u0447\u0438\u0441\u043b\u043e 0,9999999, \u043d\u043e \u0432\u044b\u0431\u0440\u0430\u043d \u0444\u043e\u0440\u043c\u0430\u0442 \u00ab\u0434\u0432\u0430 \u0437\u043d\u0430\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439\u00bb, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u00ab1,00\u00bb, \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043e\u043d\u043e \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f.<\/li>\n<li><b>UNFORMATTED_VALUE<\/b> \u2014 \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u044f\u0447\u0435\u0439\u043a\u0438, \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u0442.\u0435. \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u043e\u0441\u044c \u0431\u044b 0,9999999)<\/li>\n<li><b>FORMULA<\/b> \u2014 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430 (\u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u00ab=sin(3,14\/2)\u00bb. \u0415\u0441\u043b\u0438 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u043e \u0447\u0438\u0441\u043b\u043e, \u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043e\u043d\u043e \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f.<\/li>\n<\/ul>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0445 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d. \u0427\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d A2:F8.<br \/>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435:<\/p>\n<ul>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0438 \u043e\u0434\u043d\u0430 \u044f\u0447\u0435\u0439\u043a\u0430 \u0432 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u2014 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f.<\/li>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f.<\/li>\n<\/ul>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \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\/483302\/\"> https:\/\/habr.com\/ru\/post\/483302\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/483302\/\">\u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u044f \u043e\u0431\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Excel, \u043d\u043e \u043c\u043e\u0434\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0445\u043e\u0442\u044f\u0442 \u0432 \u043e\u0431\u043b\u0430\u043a\u0430.<\/p>\n<p>  \u041d\u0430\u0447\u0430\u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0440\u044f\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 Python, \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u043c\u0435\u043d\u0438\u0442\u044c (\u0438\u043b\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c) Excel \u0447\u0435\u043c-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0431\u043e\u0442\u044b c \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438 Google \u0438\u0437 Python, \u0442\u043e \u043f\u0440\u0435\u0431\u044b\u0432\u0430\u043b \u0432 \u0438\u043b\u043b\u044e\u0437\u0438\u0438, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043f\u0430\u0440\u0443 \u043a\u043b\u0438\u043a\u043e\u0432. \u0420\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043c\u0435\u043d\u0435\u0435 \u0440\u0430\u0434\u0443\u0436\u043d\u043e\u0439, \u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0433\u043b\u043e\u0431\u0443\u0441\u0430 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442.<\/p>\n<p>  \u041c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/305378\">\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e Google-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0438\u0437 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Google Sheets API v4)<\/a><\/li>\n<li><a href=\"http:\/\/italylov.ru\/blog\/all\/probuem-rabotat-s-google-sheets-api\/\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Google Sheets API v4\/<\/a><\/li>\n<li><a href=\"http:\/\/datalytics.ru\/all\/rabotaem-s-api-google-drive-s-pomoschyu-python\/\">\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 API Google Drive \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python<\/a><\/li>\n<\/ul>\n<p>  \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u2013 \u043a\u043e\u0433\u0434\u0430 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0437\u0430 \u0447\u0442\u043e-\u0442\u043e \u0431\u0435\u0440\u0435\u0448\u044c\u0441\u044f, \u0442\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0448\u044c\u0441\u044f \u0441 \u043c\u0430\u0441\u0441\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u043b\u0438\u0448\u044c \u043d\u0435\u0434\u043e\u0443\u043c\u0435\u043d\u0438\u0435 \u2013 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e \u0436\u0435!<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0448\u0435\u043b \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c \u2013 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0432\u044b \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u0435.<\/p>\n<p>  \u0412\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0441 Windows + Python 3.6.6, \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f Jupyter Notebook.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. \u041d\u0430\u0439\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0442\u0440\u0443\u0434\u0430.<\/p>\n<p>  \u041a\u043e\u0434, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435, \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <a href=\"https:\/\/github.com\/ovkgit\/google_sheets_python\">\u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a>  <\/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-296899","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296899","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=296899"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296899\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}