{"id":485616,"date":"2026-06-30T09:36:22","date_gmt":"2026-06-30T09:36:22","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=485616"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=485616","title":{"rendered":"\u041a\u0430\u043a \u044f \u0437\u0430 \u043d\u0435\u0434\u0435\u043b\u044e \u043f\u0435\u0440\u0435\u0432\u0435\u043b\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f-\u043f\u0430\u0440\u0441\u0435\u0440 \u043d\u0430 SaaS, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u042f\u043d\u0434\u0435\u043a\u0441 \u0432\u0432\u0451\u043b \u043f\u043b\u0430\u0442\u043d\u044b\u0439 API"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0441\u0442-\u043c\u043e\u0440\u0442\u0435\u043c: \u0447\u0442\u043e \u0431\u044b\u043b\u043e, \u0447\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u0438 \u0447\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u043e\u0441\u044c.<\/h3>\n<h3>\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442: \u0443\u043c\u0435\u0440 xml-river, keykollector \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f API Wordstat<\/h3>\n<p>\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u0435 \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0435 6 \u043b\u0435\u0442. \u0421\u0430\u043c\u044b\u043c \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0438 \u0432 \u043c\u043e\u0451\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0431\u044b\u043b KeyCollector. \u0421\u0430\u043c KeyCollector \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043f\u0430\u0440\u0441\u0438\u043b Wordstat \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u2014 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 <strong>xml-river<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a Wordstat \u0432 \u043e\u0431\u0445\u043e\u0434 \u043a\u0430\u043f\u0447\u0438. \u041a\u043e\u0433\u0434\u0430 xml-river \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u044d\u0442\u0430 \u0441\u0432\u044f\u0437\u043a\u0430 \u043e\u0431\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c, \u0438 \u0443 \u0442\u044b\u0441\u044f\u0447 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u043a\u0430\u043a \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u043e\u0441\u0442\u044c?<\/p>\n<p>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0443 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 API Wordstat. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u0441 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043b\u0438\u043c\u0438\u0442\u0430\u043c\u0438. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python (PySide6), \u043a\u043e\u0442\u043e\u0440\u0430\u044f:<\/p>\n<ul>\n<li>\n<p>\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u042f\u043d\u0434\u0435\u043a\u0441\u0435 \u0447\u0435\u0440\u0435\u0437 OAuth (Implicit Flow),<\/p>\n<\/li>\n<li>\n<p>\u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442 \u0434\u0435\u0440\u0435\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432\u0433\u043b\u0443\u0431\u044c,<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u0442 \u043c\u0438\u043d\u0443\u0441-\u0441\u043b\u043e\u0432\u0430\u043c\u0438,<\/p>\n<\/li>\n<li>\n<p>\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 CSV. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u044b\u043a\u0430\u0442\u0438\u043b\u0430 \u043a\u0430\u043a \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0434\u0435\u0441\u043a\u0442\u043e\u043f \u0441 \u043f\u043e\u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u2014 RSA-\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0440\u044f\u0434\u043e\u043c \u0441 <code>.exe<\/code>, \u043f\u043b\u044e\u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a \u0436\u0435\u043b\u0435\u0437\u0443 \u0447\u0435\u0440\u0435\u0437 \u0445\u044d\u0448 <code>disk_serial + cpu_id<\/code>, \u043f\u043b\u044e\u0441 \u0442\u0440\u0438\u0430\u043b \u043d\u0430 7 \u0434\u043d\u0435\u0439 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 Windows.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/0d\/ba\/3c\/0dba3cc0633d39a7d3784c11b2a80757.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/0d\/ba\/3c\/0dba3cc0633d39a7d3784c11b2a80757.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/0d\/ba\/3c\/0dba3cc0633d39a7d3784c11b2a80757.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412\u0430\u0436\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441: \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u0432\u043e\u0438\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u042f\u043d\u0434\u0435\u043a\u0441\u0430. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d, \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441 OAuth, \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u043e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438, \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043b\u0438\u043c\u0438\u0442\u043e\u0432 \u043d\u0430 API Wordstat \u2014 \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430 \u044d\u0442\u043e \u043f\u043e\u043b\u0434\u043d\u044f \u0433\u0435\u043c\u043e\u0440\u0440\u043e\u044f, \u0438 \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0430 \u044d\u0442\u0438\u043c \u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 <strong>\u0432\u0441\u0435 \u0445\u043e\u0434\u0438\u043b\u0438 \u0432 API \u043f\u043e\u0434 \u043c\u043e\u0438\u043c \u043b\u0438\u0447\u043d\u044b\u043c \u0442\u043e\u043a\u0435\u043d\u043e\u043c<\/strong>. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043b\u0438\u043c\u0438\u0442 \u2014 1000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0442\u043e\u043a\u0435\u043d, \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u043a\u0438 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043c\u043d\u0435 \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u0434\u043e 5000.<\/p>\n<p>\u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432.<\/p>\n<h3>\u0427\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c<\/h3>\n<p>5000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0432\u0441\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u0431\u0430\u0437\u0443 \u2014 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0442\u0435\u0431\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041a\u043b\u0438\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043b\u043e\u0432\u0438\u0442\u044c <code>429 Too Many Requests<\/code>: \u043e\u0431\u0449\u0438\u0439 \u043f\u0443\u043b \u043d\u0430 \u0442\u043e\u043a\u0435\u043d \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u043b\u0441\u044f, \u0438 \u0442\u043e\u0442, \u043a\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u043e\u0437\u0436\u0435 \u0432\u0441\u0435\u0445 \u0432 \u044d\u0442\u043e\u0442 \u0434\u0435\u043d\u044c, \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u043d\u0438 \u0441 \u0447\u0435\u043c.<\/p>\n<p>\u042f \u043f\u0438\u0441\u0430\u043b\u0430 \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u041e\u043d\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u0430\u0436\u0435 \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u043c\u043d\u0435 \u043a\u0432\u043e\u0442\u0443 \u2014 \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 1000 \u0434\u043e 5000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438. \u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u043e\u0442\u043a\u0430\u0437: \u00ab\u043f\u043e\u0442\u043e\u043b\u043e\u043a \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d, \u0436\u0434\u0438\u0442\u0435 \u043d\u043e\u0432\u043e\u0433\u043e API\u00bb. \u0410 \u00ab\u043d\u043e\u0432\u044b\u0439 API\u00bb \u2014 Wordstat \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 Yandex AI Studio Search API \u2014 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f, \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u043b\u0430\u0442\u043d\u044b\u043c: 0,02 \u20bd \u0437\u0430 \u0437\u0430\u043f\u0440\u043e\u0441. \u0417\u0430\u0442\u043e \u0441 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u0432\u043e\u0442\u043e\u0439 \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043d\u0435 \u043e\u0431\u0449\u0435\u0439 \u043d\u0430 \u0432\u0441\u0435\u0445.<\/p>\n<p>\u0421\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u00ab\u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0432\u0441\u0435\u0445\u00bb \u0434\u043e\u0436\u0438\u0432\u0430\u0435\u0442 \u0434\u043d\u0438.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u043d\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e API \u0441\u0442\u0430\u043b \u043f\u043b\u0430\u0442\u043d\u044b\u043c. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432 <strong>\u043c\u043e\u0434\u0435\u043b\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0412 \u0441\u0442\u0430\u0440\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u0432\u0441\u0435 \u043c\u043e\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0441\u0438\u0434\u0435\u043b\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0442\u043e\u043a\u0435\u043d\u0435 \u0441 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u0449\u0438\u043c \u043b\u0438\u043c\u0438\u0442\u043e\u043c. \u042f \u043f\u043b\u0430\u0442\u0438\u043b\u0430 \u042f\u043d\u0434\u0435\u043a\u0441\u0443 0 \u20bd (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e), \u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0434\u0440\u0430\u043b\u0438\u0441\u044c \u0437\u0430 \u043a\u0432\u043e\u0442\u0443 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 429. \u0414\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0441\u0432\u043e\u0439 \u0442\u043e\u043a\u0435\u043d \u044f \u043d\u0435 \u043c\u043e\u0433\u043b\u0430 \u2014 \u044d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442 \u043d\u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f OAuth-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0439 \u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u042f\u043d\u0434\u0435\u043a\u0441\u0430. \u0414\u043b\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430 \u044d\u0442\u043e \u043f\u043e\u043b\u0434\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u00ab\u043a\u0443\u043f\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043b\u0434\u043d\u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0439\u0442\u0435\u00bb \u043d\u0438\u043a\u0442\u043e \u0431\u044b \u043d\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u043b.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043d\u043e\u0432\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u00ab\u043e\u043f\u043b\u0430\u0442\u0430 \u0437\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u00bb \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0441\u0432\u043e\u044e \u043a\u0432\u043e\u0442\u0443 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441.\u041e\u0431\u043b\u0430\u043a\u0435, \u043d\u043e \u044d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0448\u0430\u0433\u043e\u0432: \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043e\u0431\u043b\u0430\u043a\u043e, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c API-\u043a\u043b\u044e\u0447. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u00ab\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0438\u043b\u0438\u043b\u0430\u0441\u044c. \u041b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0432\u044b\u0445\u043e\u0434 \u2014 \u0441\u0430\u043c\u043e\u0439 \u0441\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u043e\u0439 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 API. \u042f \u0434\u0435\u0440\u0436\u0443 API-\u043a\u043b\u044e\u0447 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u0443 \u0441\u0435\u0431\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u0430\u0440\u043c\u0430\u043d\u0430, \u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f <strong>\u043a\u0432\u043e\u0442\u0443 \u0432 \u0440\u0443\u0431\u043b\u044f\u0445<\/strong>: \u00ab10 000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0437\u0430 700 \u20bd\u00bb. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e OAuth, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 429 \u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u043f\u043e \u0442\u043e\u043a\u0435\u043d\u0443. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u2014 \u0441\u0432\u043e\u0439 \u043b\u0438\u043c\u0438\u0442, \u0438 \u043e\u043d \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e \u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0432\u0443\u0447\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u0430 \u0434\u0435\u043b\u0435 \u2014 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0451: \u0431\u044d\u043a, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438, \u0431\u043e\u0442 \u0432 Telegram, \u043b\u0435\u043d\u0434\u0438\u043d\u0433, \u043e\u043f\u043b\u0430\u0442\u044b. \u042f \u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0430 \u043d\u0430 \u044d\u0442\u043e \u043d\u0435\u0434\u0435\u043b\u044e \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0430.<\/p>\n<h3>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u0431\u044b\u043b\u043e \u0438 \u0441\u0442\u0430\u043b\u043e<\/h3>\n<p><strong>\u0411\u044b\u043b\u043e:<\/strong><\/p>\n<pre><code>[\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u0435] \u2500\u2500\u043e\u0431\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d\u2500\u2500&gt; [API Wordstat]       \u25b2       \u2502   [OAuth: \u043c\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0431\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0435\u0440\u0436\u0430\u043b\u0430 \u0432\u0441\u0451: \u043e\u0431\u0449\u0438\u0439 OAuth-\u0442\u043e\u043a\u0435\u043d \u042f\u043d\u0434\u0435\u043a\u0441\u0430 (\u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438), \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 (RSA \u0432 \u0444\u0430\u0439\u043b\u0435), \u0442\u0440\u0438\u0430\u043b (\u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u0442\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440 Windows + fingerprint \u0436\u0435\u043b\u0435\u0437\u0430). \u041e\u0434\u0438\u043d \u0442\u043e\u043a\u0435\u043d \u2014 \u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 \u043f\u0443\u043b \u043d\u0430 5000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441\u0440\u0430\u0437\u0443.<\/p>\n<p><strong>\u0421\u0442\u0430\u043b\u043e:<\/strong><\/p>\n<pre><code>[\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430] \u2500\u2500License: &lt;token&gt;\u2500\u2500&gt; [Caddy\/HTTPS] \u2500\u2500&gt; [FastAPI \u043f\u0440\u043e\u043a\u0441\u0438] \u2500\u2500API-Key\u2500\u2500&gt; [Yandex AI Studio]                                                          \u2502                                                          \u25bc                                                    [SQLite: \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438,                                                     \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u0432\u043e\u0442\u044b,                                                     \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u0443\u0447\u0451\u0442]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442. \u041e\u043d\u0430 \u043f\u0440\u043e\u0441\u0438\u0442 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0442\u043e\u043b\u044c\u043a\u043e <strong>\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447<\/strong>, \u0438 \u0432\u0441\u0451. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 HTTPS-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435:<\/p>\n<ul>\n<li>\n<p><code>Authorization: License WDD-xxxxxxxx-xxxxxxxx<\/code> \u2014 \u0442\u043e\u043a\u0435\u043d \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438,<\/p>\n<\/li>\n<li>\n<p><code>X-Device-Fingerprint: &lt;sha256&gt;<\/code> \u2014 \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043e\u043a \u0436\u0435\u043b\u0435\u0437\u0430. \u041f\u0440\u043e\u043a\u0441\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0432\u0430\u043b\u0438\u0434\u043d\u0430, \u043d\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430, \u043d\u0435 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430, \u0438 \u0447\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043e (\u0438\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0441\u043b\u043e\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c). \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u043e\u043a \u2014 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441 \u0441 \u043c\u043e\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u043c API-\u043a\u043b\u044e\u0447\u043e\u043c, \u0442\u0440\u0430\u0442\u0438\u0442 0,02 \u20bd \u0438\u0437 \u0441\u0432\u043e\u0435\u0439 \u043a\u0432\u043e\u0442\u044b, \u0441\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0442\u0435\u043f\u0435\u0440\u044c <strong>\u0441\u0432\u043e\u044f \u043a\u0432\u043e\u0442\u0430<\/strong>, \u0438 \u043e\u043d\u0430 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e OAuth, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u042f\u043d\u0434\u0435\u043a\u0441\u0430, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 429 \u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u043f\u043e \u0442\u043e\u043a\u0435\u043d\u0443.<\/p>\n<h3>\u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c<\/h3>\n<h4>\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0431\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432<\/h4>\n<p>\u0421\u0442\u0430\u0440\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0441 RSA-\u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e \u0432 \u0444\u0430\u0439\u043b\u0435 \u2014 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0444\u0444\u043b\u0430\u0439\u043d-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0431\u0430\u0437\u0435:<\/p>\n<pre><code class=\"python\">CREATE TABLE licenses (    id              INTEGER PRIMARY KEY AUTOINCREMENT,    token           TEXT UNIQUE NOT NULL,    -- WDD-xxxxxxxx-xxxxxxxx    customer        TEXT,    plan            TEXT,                    -- start \/ pro \/ max \/ trial    quota_total     INTEGER,    quota_used      INTEGER DEFAULT 0,    active_until    TEXT,                    -- ISO date    is_blocked      INTEGER DEFAULT 0,    revenue_total   REAL DEFAULT 0,    revenue_currency TEXT DEFAULT 'RUB',    revenue_in_rub  REAL DEFAULT 0,    tg_user_id      INTEGER,    device_slots    INTEGER DEFAULT 3,    is_trial        INTEGER DEFAULT 0,    note            TEXT,    created_at      TEXT);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u2014 <code>SELECT * FROM licenses WHERE token = ?<\/code> \u0438 \u043f\u0430\u0440\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0439. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e: \u0441\u0430\u043c \u0442\u043e\u043a\u0435\u043d \u0438 \u0435\u0441\u0442\u044c \u00ab\u043f\u043e\u0434\u043f\u0438\u0441\u044c\u00bb, \u043e\u043d \u0436\u0438\u0432\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043c\u043e\u0435\u0439 \u0431\u0430\u0437\u0435.<\/p>\n<p>\u042d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443. \u0420\u0430\u043d\u044c\u0448\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043b\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e, \u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043d\u043e\u0432\u044b\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438 \u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u2014 <code>UPDATE licenses SET active_until = ?, quota_total = quota_total + ?<\/code>, \u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u0430\u043b\u044c\u0448\u0435 \u0441 \u0442\u0435\u043c \u0436\u0435 \u043a\u043b\u044e\u0447\u043e\u043c.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/30\/7e\/e3\/307ee3e26aad7a876e2f220d12e41fe6.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/30\/7e\/e3\/307ee3e26aad7a876e2f220d12e41fe6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/30\/7e\/e3\/307ee3e26aad7a876e2f220d12e41fe6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h4>\u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c<\/h4>\n<p>\u0420\u0430\u0437 \u0443\u0436 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f, \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0443\u044e \u0431\u043e\u043b\u044c: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0441 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438. \u0420\u0430\u043d\u044c\u0448\u0435 \u044f \u043d\u0438\u0447\u0435\u0433\u043e \u0441 \u044d\u0442\u0438\u043c \u043d\u0435 \u043c\u043e\u0433\u043b\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u2014 \u043c\u043e\u0433\u0443. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 fingerprint \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<pre><code class=\"python\">CREATE TABLE license_devices (    id           INTEGER PRIMARY KEY AUTOINCREMENT,    license_id   INTEGER NOT NULL,    fingerprint  TEXT NOT NULL,    first_seen   TEXT,    last_seen    TEXT,    UNIQUE (license_id, fingerprint));<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438:<\/p>\n<pre><code class=\"python\">def check_or_register_device(lic, fingerprint):    if not fingerprint:        return  # \u0441\u0442\u0430\u0440\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438    existing = ...  # \u0443\u0436\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d?    if existing:        update_last_seen()        return    if devices_count(lic.id) &gt;= lic.device_slots:        raise HTTPException(403, \"\u041b\u0438\u043c\u0438\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\")    insert_device(lic.id, fingerprint)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>device_slots<\/code> \u0443 \u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u2014 3 (\u0434\u043e\u043c + \u043e\u0444\u0438\u0441 + \u0440\u0435\u0437\u0435\u0440\u0432), \u0443 \u0442\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u2014 1. \u0426\u0438\u0444\u0440\u044b \u0432\u0437\u044f\u0442\u044b \u0441 \u043f\u043e\u0442\u043e\u043b\u043a\u0430 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0434\u0430\u0436\u0438\u00bb.<\/p>\n<p>Fingerprint \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0440\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043d \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e \u2014 \u043d\u0430 Windows \u0447\u0435\u0440\u0435\u0437 <code>vol c:<\/code> + ProcessorNameString \u0438\u0437 \u0440\u0435\u0435\u0441\u0442\u0440\u0430, \u043d\u0430 Mac \u0447\u0435\u0440\u0435\u0437 <code>IOPlatformSerialNumber<\/code>, \u043d\u0430 Linux \u0447\u0435\u0440\u0435\u0437 <code>\/etc\/machine-id<\/code>. \u0425\u044d\u0448 SHA-256, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c.<\/p>\n<h4>\u0422\u0440\u0438\u0430\u043b \u0431\u0435\u0437 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439<\/h4>\n<p>\u0412 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0442\u0440\u0438\u0430\u043b \u0436\u0438\u043b \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 Windows \u0438 \u0431\u043e\u0440\u043e\u043b\u0441\u044f \u0441 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0447\u0435\u0440\u0435\u0437 fingerprint \u0436\u0435\u043b\u0435\u0437\u0430. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u0430\u0440\u0430\u043d\u043e\u0438\u0434\u0430\u043b\u044c\u043d\u043e \u0438 \u043f\u043b\u043e\u0445\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u043b\u043e \u0430\u043f\u0433\u0440\u0435\u0439\u0434 \u0436\u0435\u043b\u0435\u0437\u0430 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/p>\n<p>\u0412 SaaS-\u043c\u043e\u0434\u0435\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u043e\u0449\u0435: \u0442\u0440\u0438\u0430\u043b \u2014 \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0441 \u043a\u0432\u043e\u0442\u043e\u0439 500 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u0440\u043e\u043a\u043e\u043c 7 \u0434\u043d\u0435\u0439. \u0412\u044b\u0434\u0430\u0451\u0442 \u0435\u0451 Telegram-\u0431\u043e\u0442 \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"python\">@app.post(\"\/admin\/trial\")def admin_trial(body: TrialRequest):    existing = find_trial_by_tg_user(body.tg_user_id)    if existing:        return existing  # \u0443\u0436\u0435 \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0438 \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0442\u043e\u0442 \u0436\u0435    return create_trial(body.tg_user_id, quota=500, days=7)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u2014 \u043f\u043e <code>tg_user_id<\/code>. \u041f\u0440\u043e\u0441\u0442\u0430\u044f, \u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f (\u0432\u0442\u043e\u0440\u044b\u043c Telegram-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c), \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f: \u043e\u0434\u0438\u043d \u0442\u0440\u0438\u0430\u043b = 10 \u20bd \u043c\u043e\u0438\u0445 \u0434\u0435\u043d\u0435\u0433 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u0440\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u043a\u0440\u0443\u0442\u043a\u0430 \u043d\u0435\u0440\u0435\u043d\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0430. \u041a\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u0440\u0435\u043d\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0439 \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438\u043b\u0438 \u0421\u041c\u0421.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/19\/47\/0a\/19470a5f2511364c5f6774feb8817a23.png\" width=\"320\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/19\/47\/0a\/19470a5f2511364c5f6774feb8817a23.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/19\/47\/0a\/19470a5f2511364c5f6774feb8817a23.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/e1\/01\/86\/e1018683ae4909b298d24a43a62eaa0e.png\" width=\"320\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/e1\/01\/86\/e1018683ae4909b298d24a43a62eaa0e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/e1\/01\/86\/e1018683ae4909b298d24a43a62eaa0e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h4>\u0410\u0432\u0442\u043e-\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0435\u0437 \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0439 \u0431\u043e\u043b\u0438<\/h4>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u044f\u043d\u0435\u0442 \u0441 \u043c\u043e\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u0434\u0438\u043d JSON:<\/p>\n<pre><code class=\"json\">{  \"latest_version\": \"5.0\",  \"download_url\": \"https:\/\/api.example.com\/download\/WordstatDeepDive.exe\",  \"min_version\": \"5.0\"}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u0432 JSON \u0432\u044b\u0448\u0435 \u2014 \u0432 \u0441\u0442\u0430\u0442\u0443\u0441-\u0431\u0430\u0440\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u00ab\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f 5.1\u00bb. \u041a\u043b\u0438\u043a \u0432\u0435\u0434\u0451\u0442 \u043d\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u043e \u0441 \u043c\u043e\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u2014 \u044d\u0442\u043e\u0442 <code>version.json<\/code> \u043b\u0435\u0436\u0438\u0442 <strong>\u0444\u0430\u0439\u043b\u043e\u043c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong>, \u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 <code>\/version<\/code> \u0447\u0438\u0442\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435. \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0430\u043f\u0434\u0435\u0439\u0442, \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e:<\/p>\n<ol>\n<li>\n<p>\u0421\u043e\u0431\u0440\u0430\u0442\u044c <code>.exe<\/code> \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e (PyInstaller).<\/p>\n<\/li>\n<li>\n<p><code>scp<\/code> \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 <code>downloads\/<\/code> \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<\/li>\n<li>\n<p><code>nano version.json<\/code>, \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <code>latest_version<\/code>, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u0412\u0441\u0451. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e CI\/CD, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0443\u0448-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439. \u0427\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443\u0432\u0438\u0434\u0438\u0442 \u0430\u043f\u0434\u0435\u0439\u0442.<\/p>\n<\/li>\n<\/ol>\n<h4>\u041c\u0443\u043b\u044c\u0442\u0438-\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u0443\u0447\u0451\u0442<\/h4>\n<p>\u041f\u043b\u0430\u0442\u044f\u0442 \u043c\u043d\u0435 \u0438\u0437 \u0420\u043e\u0441\u0441\u0438\u0438, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0438 \u0440\u0435\u0436\u0435 \u2014 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0440\u0430\u043d. \u041d\u0430 \u0441\u0447\u0451\u0442 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u0435\u0442 \u0442\u043e \u0440\u0443\u0431\u043b\u0438, \u0442\u043e \u0431\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u0440\u0443\u0431\u043b\u0438, \u0442\u043e \u0434\u043e\u043b\u043b\u0430\u0440\u044b. \u0427\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0440\u0436\u0443, \u043d\u0443\u0436\u0435\u043d \u043e\u0431\u0449\u0438\u0439 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c \u2014 \u044f \u0432\u044b\u0431\u0440\u0430\u043b\u0430 RUB.<\/p>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 \u0442\u044f\u043d\u0435\u0442 \u043a\u0443\u0440\u0441\u044b \u0441 \u041d\u0411 \u0420\u0411 (<code>https:\/\/www.nbrb.by\/api\/exrates\/rates?periodicity=0<\/code>), \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u041a\u043e\u0433\u0434\u0430 \u044f \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u044e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u043c\u0438\u043d\u043a\u0443, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0441\u0443\u043c\u043c\u0443 \u0438 \u0432\u0430\u043b\u044e\u0442\u0443 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u0435 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b: \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0438 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442 \u0432 RUB \u043f\u043e \u043a\u0443\u0440\u0441\u0443 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043b\u0430\u0442\u0435\u0436\u0430.<\/p>\n<pre><code class=\"python\">revenue_rub = body.revenue * fx_rates_to_rub[body.revenue_currency]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u0443\u0440\u0441 \u00ab\u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f\u00bb \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u2014 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0443\u0447\u0451\u0442\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043b\u0435\u0431\u0430\u043d\u0438\u0439 \u043a\u0443\u0440\u0441\u0430 \u0437\u0430\u0434\u043d\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043c\u0430\u0440\u0436\u0430 \u043f\u043e \u0443\u0436\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d\u043d\u044b\u043c \u0441\u0434\u0435\u043b\u043a\u0430\u043c \u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u044b \u043f\u043b\u0430\u0432\u0430\u0442\u044c.<\/p>\n<p>\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0437\u0430\u0441\u0430\u0434\u0430: \u041d\u0411 \u0420\u0411 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e (ReadTimeout). \u0421\u0434\u0435\u043b\u0430\u043b\u0430 \u0442\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0430 \u0434\u043e 30 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u00ab\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u0443\u0440\u0441\u044b\u00bb \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0434\u043b\u044f \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.<\/p>\n<h4>\u041b\u0435\u043d\u0434\u0438\u043d\u0433 \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u043e\u043c \u0430\u043a\u0446\u0438\u0438<\/h4>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u0430\u043a-\u0442\u043e \u00ab\u043f\u0440\u043e\u0434\u0430\u0442\u044c\u00bb \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438. \u0421\u0434\u0435\u043b\u0430\u043b\u0430 \u0430\u043a\u0446\u0438\u044e: \u221220% \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u044b\u0445 30 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043e \u0434\u0430\u0442\u044b X. \u0421\u0430\u043c\u043e\u0435 \u0441\u043a\u0443\u0447\u043d\u043e\u0435 \u0432 \u0442\u0430\u043a\u0438\u0445 \u0430\u043a\u0446\u0438\u044f\u0445 \u2014 \u044d\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0439 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u00ab\u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c 17 \u043c\u0435\u0441\u0442!\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/98\/b4\/fe\/98b4fe8349cb6762d64a9bd78cbc002f.png\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/98\/b4\/fe\/98b4fe8349cb6762d64a9bd78cbc002f.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/98\/b4\/fe\/98b4fe8349cb6762d64a9bd78cbc002f.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b \u2014 \u0441\u0435\u0440\u0432\u0435\u0440. \u042d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 <code>\/promo<\/code> \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0434\u0430\u043d\u043d\u044b\u0445 EARLY-\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0439 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<pre><code class=\"python\">@app.get(\"\/promo\")def public_promo():    used = count_licenses(note_contains=\"EARLY\")    return {        \"active\": used &lt; MAX_SLOTS and today &lt; DEADLINE,        \"slots_remaining\": MAX_SLOTS - used,        \"deadline\": DEADLINE,        \"discount\": 0.20,    }<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0435\u043d\u0434\u0438\u043d\u0433 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0434\u0438\u043d <code>fetch<\/code> \u043d\u0430 \u044d\u0442\u043e\u0442 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442. \u0415\u0441\u043b\u0438 \u0430\u043a\u0446\u0438\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u0430 \u2014 \u0440\u0438\u0441\u0443\u0435\u0442 \u0431\u0430\u043d\u043d\u0435\u0440 \u0441\u0432\u0435\u0440\u0445\u0443 \u0438 \u0437\u0430\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0430\u0440\u044b\u0435 \u0446\u0435\u043d\u044b, \u0438\u043d\u0430\u0447\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u0440\u0443\u0447\u043d\u043e\u0439 \u043f\u0440\u0430\u0432\u043a\u0438 HTML, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u00ab\u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c 23 \u043c\u0435\u0441\u0442\u0430\u00bb.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0430\u043a\u0446\u0438\u044f \u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u2014 \u0431\u0430\u043d\u043d\u0435\u0440 \u0441\u0430\u043c \u0438\u0441\u0447\u0435\u0437\u043d\u0435\u0442, \u0446\u0435\u043d\u044b \u0432\u0435\u0440\u043d\u0443\u0442\u0441\u044f, \u0432 \u0431\u043e\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0442\u0430\u0440\u0438\u0444\u043e\u0432 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043a\u0438\u0434\u043a\u0443. CORS-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0442 \u043b\u0435\u043d\u0434\u0438\u043d\u0433\u0443 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d\u0435 \u0434\u0451\u0440\u0433\u0430\u0442\u044c API \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c.<\/p>\n<h3>\u0413\u0440\u0430\u0431\u043b\u0438<\/h3>\n<p>\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044e \u0442\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<ol>\n<li>\n<p><strong>CRLF \u0432 <\/strong><code><strong>.env<\/strong><\/code><strong>-\u0444\u0430\u0439\u043b\u0430\u0445<\/strong>. \u041d\u0430 Windows \u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0438 Notepad\u2019\u043e\u043c \u0438\u043b\u0438 VS Code, \u043d\u0430 Linux \u043e\u043d\u0438 \u0443\u043b\u0435\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 <code>scp<\/code>. \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u043f\u0440\u0438\u043b\u0438\u043f\u0430\u0435\u0442 <code>\\r<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0432\u0438\u0434\u0435\u043d \u0433\u043b\u0430\u0437\u0430\u043c\u0438, \u043d\u043e \u043b\u043e\u043c\u0430\u0435\u0442 \u0432\u0441\u0451. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u043e\u043a\u0435\u043d \u0431\u043e\u0442\u0430 \u0441 <code>\\r<\/code> \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0439 URL, \u0438 <code>httpx<\/code> \u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 <code>Invalid non-printable ASCII character in URL<\/code>. \u041b\u0435\u0447\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"bash\">   sed -i 's\/\\r$\/\/' \/home\/user\/bot\/.env<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<ol start=\"2\">\n<li>\n<p><strong>Telegram-conflict \u043f\u0440\u0438 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0435<\/strong>. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 80 \u0447\u0435\u043b\u043e\u0432\u0435\u043a <strong>\u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e<\/strong> \u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c \u0431\u043e\u0442\u043e\u043c (\u0442\u043e\u0442 \u0436\u0435 <code>BOT_TOKEN<\/code>). \u0411\u043e\u0442 \u00ab\u0441\u0434\u043e\u0445\u00bb \u2014 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 <code>\/start<\/code>. \u041f\u0440\u0438\u0447\u0438\u043d\u0430: Telegram \u0434\u0430\u0451\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u043c\u0443 getter\u2019\u0443, \u0438 \u0435\u0441\u043b\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0443\u0447\u0430\u0442\u0441\u044f \u0434\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441 \u043e\u0434\u043d\u0438\u043c \u0442\u043e\u043a\u0435\u043d\u043e\u043c, \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 409 Conflict, \u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u2014 \u043f\u0443\u0441\u0442\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b. \u0423\u0440\u043e\u043a: \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0431\u043e\u0442 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>PyInstaller \u0438 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u044b<\/strong>. <code>.exe<\/code>, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441 <code>--onefile<\/code>, \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442 Qt-DLL \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443. Windows Defender \u0447\u0430\u0441\u0442\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e \u00ab\u043d\u0430 \u043b\u0435\u0442\u0443\u00bb, \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442 <code>Failed to extract MSVCP140.dll: decompression resulted in return code -3<\/code>. \u0427\u0438\u043d\u0438\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u0430 (\u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438) \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c <code>.exe<\/code> code-signing \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c (\u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439). \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442 $225\/\u0433\u043e\u0434 + \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 USB-\u0442\u043e\u043a\u0435\u043d \u0441 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0439 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439. \u041f\u043e\u043a\u0430 \u0436\u0438\u0432\u0443 \u0441 \u0434\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440\u043e\u043c \u00ab\u0435\u0441\u043b\u0438 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441 \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f \u2014 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u2192 \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u00bb.<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043d\u043e\u0433\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 <\/strong><code><strong>.ico<\/strong><\/code>. \u0418\u043a\u043e\u043d\u043a\u0430 \u0432 <code>.exe<\/code> \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u043b\u0430\u0441\u044c, \u043d\u043e \u0432 \u043e\u043a\u043d\u0435 Qt \u2014 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0430\u0441\u044c. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0432 <code>.ico<\/code> \u0431\u044b\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043c\u0435\u0440 256\u00d7256, \u0430 Windows \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0440\u0435\u044f \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u043e\u043a\u043d\u0430 \u0431\u0435\u0440\u0451\u0442 16\u00d716 \u0438 32\u00d732. \u041f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u043b\u0430 \u0447\u0435\u0440\u0435\u0437 Pillow:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"python\">   img.save('app_icon.ico', format='ICO',            sizes=[(16,16),(32,32),(48,48),(64,64),(128,128),(256,256)])<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<ol start=\"5\">\n<li>\n<p><strong>Caddy \u0438 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433<\/strong>. Caddy \u0440\u0430\u0437\u0434\u0430\u0451\u0442 \u0441\u0442\u0430\u0442\u0438\u043a\u0443 \u043b\u0435\u043d\u0434\u0438\u043d\u0433\u0430 \u0438\u0437 <code>\/home\/user\/landing\/<\/code>. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043e\u043c\u0430\u0448\u043d\u044f\u044f \u043f\u0430\u043f\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u0430 <code>750<\/code> \u2014 Caddy \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432 \u043d\u0435\u0451 \u0432\u043e\u0439\u0442\u0438 \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 403. \u041b\u0435\u0447\u0438\u0442\u0441\u044f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"bash\">   chmod o+rx \/home\/user   chmod -R o+rX \/home\/user\/landing<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>(\u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 <code>X<\/code> \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 <code>.html<\/code> \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c)<\/p>\n<h3>\u042e\u043d\u0438\u0442-\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043a\u0430, \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e<\/h3>\n<p>\u0425\u043e\u0447\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0446\u0435\u043d\u044b \u0443 \u043c\u0435\u043d\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0442\u0430\u043a:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0422\u0430\u0440\u0438\u0444<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0417\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0421\u0440\u043e\u043a<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0426\u0435\u043d\u0430<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0417\u0430 1000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Start<\/p>\n<\/td>\n<td>\n<p align=\"left\">10 000<\/p>\n<\/td>\n<td>\n<p align=\"left\">90 \u0434\u043d<\/p>\n<\/td>\n<td>\n<p align=\"left\">700 \u20bd<\/p>\n<\/td>\n<td>\n<p align=\"left\">70 \u20bd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Pro<\/p>\n<\/td>\n<td>\n<p align=\"left\">30 000<\/p>\n<\/td>\n<td>\n<p align=\"left\">90 \u0434\u043d<\/p>\n<\/td>\n<td>\n<p align=\"left\">1 800 \u20bd<\/p>\n<\/td>\n<td>\n<p align=\"left\">60 \u20bd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Max<\/p>\n<\/td>\n<td>\n<p align=\"left\">100 000<\/p>\n<\/td>\n<td>\n<p align=\"left\">180 \u0434\u043d<\/p>\n<\/td>\n<td>\n<p align=\"left\">5 000 \u20bd<\/p>\n<\/td>\n<td>\n<p align=\"left\">50 \u20bd<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u044f \u043f\u0440\u043e\u0434\u0430\u044e \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430 <strong>5\u20137 \u043a\u043e\u043f\u0435\u0435\u043a<\/strong>, \u043f\u0440\u0438 \u0442\u043e\u043c \u0447\u0442\u043e \u0443 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u043e\u043d \u0441\u0442\u043e\u0438\u0442 <strong>2 \u043a\u043e\u043f\u0435\u0439\u043a\u0438<\/strong>. \u041d\u0430\u0446\u0435\u043d\u043a\u0430 ~2.5\u20133.5\u00d7. \u0417\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: \u00ab\u043d\u0435 \u043e\u0444\u0438\u0433\u0435\u043b\u0430 \u043b\u0438?\u00bb. \u0420\u0430\u0437\u0431\u0435\u0440\u0443 \u0447\u0435\u0441\u0442\u043d\u043e.<\/p>\n<p>\u0426\u0435\u043d\u0430 0,02 \u20bd \u2014 \u044d\u0442\u043e <strong>\u0442\u043e\u043b\u044c\u043a\u043e<\/strong> \u043f\u0440\u044f\u043c\u0430\u044f \u0441\u0435\u0431\u0435\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c API. \u041d\u0430 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0434\u0430\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>0,02 \u20bd \u2014 \u042f\u043d\u0434\u0435\u043a\u0441,<\/p>\n<\/li>\n<li>\n<p>~0,001 \u20bd \u2014 \u0434\u043e\u043b\u044f VPS (\u20ac101\/\u0433\u043e\u0434 \u043f\u0440\u0438 ~50 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c),<\/p>\n<\/li>\n<li>\n<p>10\u201315% \u043e\u0442 \u0432\u044b\u0440\u0443\u0447\u043a\u0438 \u2014 \u043d\u0430\u043b\u043e\u0433 \u041d\u041f\u0414,<\/p>\n<\/li>\n<li>\n<p>\u043e\u0441\u0442\u0430\u0442\u043e\u043a \u2014 \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043e\u0442\u0442\u043e\u043a, \u0440\u0438\u0441\u043a \u0442\u0440\u0438\u0430\u043b\u043e\u0432 \u0438 \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435. \u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u043b\u043e\u0433\u0430 \u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong>\u0447\u0438\u0441\u0442\u0430\u044f \u043c\u0430\u0440\u0436\u0430 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 40\u201350%<\/strong>. \u042d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0430 \u0434\u043b\u044f \u043d\u0438\u0448\u0435\u0432\u043e\u0433\u043e b2b SaaS \u2014 \u0434\u0430\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u043e\u043c\u043d\u043e. \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f: \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 SaaS-\u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441 \u0431\u0435\u0440\u0451\u0442 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044e 20\u201330% \u0441\u0432\u0435\u0440\u0445\u0443, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u00ab\u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043d\u044b\u0435\u00bb SEO-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0434\u0430\u044e\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u0441 \u043c\u0430\u0440\u0436\u043e\u0439 70\u201380%, \u0430 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0432\u0440\u043e\u0434\u0435 AWS \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0434\u0430\u044e\u0442 \u0436\u0435\u043b\u0435\u0437\u043e \u0441 \u043d\u0430\u0446\u0435\u043d\u043a\u043e\u0439 5\u201320\u00d7 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u044f\u043c\u043e\u0439 \u0441\u0435\u0431\u0435\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0426\u0435\u043d\u044b \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0446\u0435\u043d\u0430 \u0437\u0430 1000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0441\u043d\u0438\u0436\u0430\u043b\u0430\u0441\u044c \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c (70 \u2192 60 \u2192 50 \u20bd). \u042d\u0442\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0446\u0435\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0440\u0443\u0448\u0438\u0442\u044c: \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0430 \u0442\u0430\u043a, \u0447\u0442\u043e Pro \u0441\u0442\u043e\u0438\u043b <strong>\u0434\u043e\u0440\u043e\u0436\u0435<\/strong> \u0432 \u043f\u0435\u0440\u0435\u0441\u0447\u0451\u0442\u0435 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441, \u0447\u0435\u043c Start, \u2014 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c.<\/p>\n<p>\u0421\u0430\u043c\u043e\u0435 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u2014 \u044d\u0442\u043e <strong>\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u0440\u0438\u0430\u043b\u0430<\/strong>. \u042f \u0432\u044b\u0434\u0430\u044e 500 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 7 \u0434\u043d\u0435\u0439 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0430 \u043e\u0434\u0438\u043d \u0442\u0440\u0438\u0430\u043b \u044f \u0442\u0440\u0430\u0447\u0443 \u0434\u043e 10 \u20bd \u043c\u043e\u0438\u0445 \u0436\u0438\u0432\u044b\u0445 \u0434\u0435\u043d\u0435\u0433, \u0438 \u0435\u0441\u043b\u0438 \u0438\u0437 100 \u0442\u0440\u0438\u0430\u043b\u043e\u0432 \u043a\u0443\u043f\u0438\u0442 \u0445\u043e\u0442\u044f \u0431\u044b 5 \u2014 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 (1 \u043f\u0440\u043e\u0434\u0430\u043d\u043d\u044b\u0439 Pro = 1800 \u20bd \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442 100+ \u0442\u0440\u0438\u0430\u043b\u043e\u0432). \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0443\u043f\u0430\u0434\u0451\u0442 \u043d\u0438\u0436\u0435 1% \u2014 \u0431\u0443\u0434\u0443 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u0442\u0440\u0438\u0430\u043b \u0438\u043b\u0438 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0440\u043e\u0433\u0438.<\/p>\n<p>\u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0430\u0432\u0442\u043e\u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439, \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u042eKassa, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e Stripe. \u041a\u043b\u0438\u0435\u043d\u0442 \u0432 Telegram-\u0431\u043e\u0442\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0442\u0430\u0440\u0438\u0444 \u2192 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b (\u043a\u0430\u0440\u0442\u0430 \u0438\u043b\u0438 \u0441\u0447\u0451\u0442) \u2192 \u043f\u043b\u0430\u0442\u0438\u0442 \u2192 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442 \u0447\u0435\u043a \u0432 \u0442\u043e\u0442 \u0436\u0435 \u0431\u043e\u0442 \u2192 \u044f \u043d\u0430\u0436\u0438\u043c\u0430\u044e \u043e\u0434\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>\/give pro @nickname 1800<\/code> \u2192 \u0431\u043e\u0442 \u0441\u0430\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447. \u0414\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430 (\u0435\u0434\u0438\u043d\u0438\u0446\u044b \u043e\u043f\u043b\u0430\u0442 \u0432 \u0434\u0435\u043d\u044c) \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0447\u0435\u043c \u0433\u043e\u0440\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0439 \u0448\u043b\u044e\u0437.<\/p>\n<h3>\u0427\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435<\/h3>\n<p>\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0437\u0430\u043d\u044f\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0435\u0434\u0435\u043b\u044e \u0447\u0438\u0441\u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0441\u0447\u0438\u0442\u0430\u044f \u0431\u044d\u043a, \u0431\u043e\u0442, \u043b\u0435\u043d\u0434\u0438\u043d\u0433, \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u0441\u0442\u0430\u0440\u043e\u0439 \u0431\u0430\u0437\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438 \u0441\u0431\u043e\u0440\u043a\u0443 \u043d\u043e\u0432\u043e\u0433\u043e <code>.exe<\/code>. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0431\u043e\u0435\u0432\u043e\u0439 \u0431\u0430\u0437\u0435 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0439 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0432 \u0434\u0435\u043d\u044c \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u0441\u0442\u0430\u0440\u043e\u0439 \u0431\u0430\u0437\u0435.<\/p>\n<p>\u0421\u0430\u043c\u043e\u0435 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0435 \u2014 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e <strong>\u043f\u0440\u043e\u0449\u0435<\/strong> \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 SaaS:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u043e\u0434\u043b\u0438\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u2014 <code>UPDATE<\/code> \u0432 \u0431\u0430\u0437\u0435, \u0441\u0435\u043a\u0443\u043d\u0434\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043c\u043f, \u2014 \u043a\u043d\u043e\u043f\u043a\u0430 \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u2014 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u2014 \u0434\u0432\u0430 <code>scp<\/code> \u0438 <code>nano<\/code>. \u0412 \u043e\u0444\u0444\u043b\u0430\u0439\u043d-\u043c\u043e\u0434\u0435\u043b\u0438 \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441\u0442\u043e\u0438\u043b\u043e \u0447\u0430\u0441 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u043a\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0427\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u00ab\u043d\u0430 \u043f\u043e\u0442\u043e\u043c\u00bb<\/h3>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0442\u0430\u043a, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0432\u0441\u0451 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>Code-signing \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u2014 \u043f\u043e\u043a\u0430 \u0436\u0438\u0432\u0443 \u0441 \u0434\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440\u043e\u043c \u043f\u0440\u043e \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043a\u043e\u043d\u043a\u0430 \u043e\u043a\u043d\u0430 \u0432 \u0442\u0440\u0435\u0435 \u2014 \u043d\u0435 \u043f\u043e\u0434\u0446\u0435\u043f\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u0431\u0430\u0433 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u0434 Mac \u0438 Linux \u2014 PyInstaller \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u0440\u043e\u0441\u0441-\u0441\u0431\u043e\u0440\u043a\u0443, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b. \u041f\u043e\u0434\u043e\u0436\u0434\u0443, \u043f\u043e\u043a\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u044f\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u2014 \u043f\u043e\u043a\u0430 \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c, \u043f\u0440\u0438 \u043f\u043e\u0442\u043e\u043a\u0435 10+ \u043e\u043f\u043b\u0430\u0442 \u0432 \u0434\u0435\u043d\u044c \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u042eKassa \u0438\u043b\u0438 \u043f\u0440\u044f\u043c\u044b\u0435 \u0432\u0435\u0431\u0445\u0443\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u043d\u0430\u043a\u0440\u0443\u0442\u043a\u0438 \u0442\u0440\u0438\u0430\u043b\u043e\u0432 \u2014 \u043f\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e <code>tg_user_id<\/code>. \u041a\u043e\u0433\u0434\u0430 \u0443\u0432\u0438\u0436\u0443 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0444\u0435\u0439\u043a\u043e\u0432\u044b\u0445 TG, \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u043b\u043e\u043a \u043d\u0430 \u0432\u044b\u0434\u0430\u0447\u0443 \u0442\u0440\u0438\u0430\u043b\u043e\u0432 \u0438 \u043c\u0435\u0441\u044f\u0447\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043b\u043e\u043a \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<p>\u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0443\u0441\u043a\u0438 \u043a\u043e\u0434\u0430 \u0438\u043b\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0441 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0430 \u043d\u0430 SaaS \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u044b, \u043e\u0442\u0432\u0435\u0447\u0443 \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e.<\/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\/articles\/1053848\/\">https:\/\/habr.com\/ru\/articles\/1053848\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0441\u0442-\u043c\u043e\u0440\u0442\u0435\u043c: \u0447\u0442\u043e \u0431\u044b\u043b\u043e, \u0447\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u0438 \u0447\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u043e\u0441\u044c.\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442: \u0443\u043c\u0435\u0440 xml-river, keykollector \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f API Wordstat\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u0435 \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0435 6 \u043b\u0435\u0442. \u0421\u0430\u043c\u044b\u043c \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0438 \u0432 \u043c\u043e\u0451\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0431\u044b\u043b KeyCollector. \u0421\u0430\u043c KeyCollector \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043f\u0430\u0440\u0441\u0438\u043b Wordstat \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u2014 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 xml-river, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a Wordstat \u0432 \u043e\u0431\u0445\u043e\u0434 \u043a\u0430\u043f\u0447\u0438. \u041a\u043e\u0433\u0434\u0430 xml-river \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u044d\u0442\u0430 \u0441\u0432\u044f\u0437\u043a\u0430 \u043e\u0431\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c, \u0438 \u0443 \u0442\u044b\u0441\u044f\u0447 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u043a\u0430\u043a \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u043e\u0441\u0442\u044c?\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0443 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 API Wordstat. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u0441 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043b\u0438\u043c\u0438\u0442\u0430\u043c\u0438. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python (PySide6), \u043a\u043e\u0442\u043e\u0440\u0430\u044f:\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u042f\u043d\u0434\u0435\u043a\u0441\u0435 \u0447\u0435\u0440\u0435\u0437 OAuth (Implicit Flow),\u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442 \u0434\u0435\u0440\u0435\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432\u0433\u043b\u0443\u0431\u044c,\u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u0442 \u043c\u0438\u043d\u0443\u0441-\u0441\u043b\u043e\u0432\u0430\u043c\u0438,\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 CSV. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u044b\u043a\u0430\u0442\u0438\u043b\u0430 \u043a\u0430\u043a \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0434\u0435\u0441\u043a\u0442\u043e\u043f \u0441 \u043f\u043e\u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u2014 RSA-\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0440\u044f\u0434\u043e\u043c \u0441 .exe, \u043f\u043b\u044e\u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a \u0436\u0435\u043b\u0435\u0437\u0443 \u0447\u0435\u0440\u0435\u0437 \u0445\u044d\u0448 disk_serial + cpu_id, \u043f\u043b\u044e\u0441 \u0442\u0440\u0438\u0430\u043b \u043d\u0430 7 \u0434\u043d\u0435\u0439 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 Windows.\u0412\u0430\u0436\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441: \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u0432\u043e\u0438\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u042f\u043d\u0434\u0435\u043a\u0441\u0430. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d, \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441 OAuth, \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u043e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438, \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043b\u0438\u043c\u0438\u0442\u043e\u0432 \u043d\u0430 API Wordstat \u2014 \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430 \u044d\u0442\u043e \u043f\u043e\u043b\u0434\u043d\u044f \u0433\u0435\u043c\u043e\u0440\u0440\u043e\u044f, \u0438 \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0430 \u044d\u0442\u0438\u043c \u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u0445\u043e\u0434\u0438\u043b\u0438 \u0432 API \u043f\u043e\u0434 \u043c\u043e\u0438\u043c \u043b\u0438\u0447\u043d\u044b\u043c \u0442\u043e\u043a\u0435\u043d\u043e\u043c. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043b\u0438\u043c\u0438\u0442 \u2014 1000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0442\u043e\u043a\u0435\u043d, \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u043a\u0438 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043c\u043d\u0435 \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u0434\u043e 5000.\u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432.\u0427\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c5000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0432\u0441\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u0431\u0430\u0437\u0443 \u2014 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0442\u0435\u0431\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041a\u043b\u0438\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043b\u043e\u0432\u0438\u0442\u044c 429 Too Many Requests: \u043e\u0431\u0449\u0438\u0439 \u043f\u0443\u043b \u043d\u0430 \u0442\u043e\u043a\u0435\u043d \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u043b\u0441\u044f, \u0438 \u0442\u043e\u0442, \u043a\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u043e\u0437\u0436\u0435 \u0432\u0441\u0435\u0445 \u0432 \u044d\u0442\u043e\u0442 \u0434\u0435\u043d\u044c, \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u043d\u0438 \u0441 \u0447\u0435\u043c.\u042f \u043f\u0438\u0441\u0430\u043b\u0430 \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u041e\u043d\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u0430\u0436\u0435 \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u043c\u043d\u0435 \u043a\u0432\u043e\u0442\u0443 \u2014 \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 1000 \u0434\u043e 5000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438. \u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u043e\u0442\u043a\u0430\u0437: \u00ab\u043f\u043e\u0442\u043e\u043b\u043e\u043a \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d, \u0436\u0434\u0438\u0442\u0435 \u043d\u043e\u0432\u043e\u0433\u043e API\u00bb. \u0410 \u00ab\u043d\u043e\u0432\u044b\u0439 API\u00bb \u2014 Wordstat \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 Yandex AI Studio Search API \u2014 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f, \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u043b\u0430\u0442\u043d\u044b\u043c: 0,02 \u20bd \u0437\u0430 \u0437\u0430\u043f\u0440\u043e\u0441. \u0417\u0430\u0442\u043e \u0441 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u0432\u043e\u0442\u043e\u0439 \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043d\u0435 \u043e\u0431\u0449\u0435\u0439 \u043d\u0430 \u0432\u0441\u0435\u0445.\u0421\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u00ab\u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0432\u0441\u0435\u0445\u00bb \u0434\u043e\u0436\u0438\u0432\u0430\u0435\u0442 \u0434\u043d\u0438.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u043d\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e API \u0441\u0442\u0430\u043b \u043f\u043b\u0430\u0442\u043d\u044b\u043c. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:\u0412 \u0441\u0442\u0430\u0440\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u0432\u0441\u0435 \u043c\u043e\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0441\u0438\u0434\u0435\u043b\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0442\u043e\u043a\u0435\u043d\u0435 \u0441 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u0449\u0438\u043c \u043b\u0438\u043c\u0438\u0442\u043e\u043c. \u042f \u043f\u043b\u0430\u0442\u0438\u043b\u0430 \u042f\u043d\u0434\u0435\u043a\u0441\u0443 0 \u20bd (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e), \u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0434\u0440\u0430\u043b\u0438\u0441\u044c \u0437\u0430 \u043a\u0432\u043e\u0442\u0443 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 429. \u0414\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0441\u0432\u043e\u0439 \u0442\u043e\u043a\u0435\u043d \u044f \u043d\u0435 \u043c\u043e\u0433\u043b\u0430 \u2014 \u044d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442 \u043d\u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f OAuth-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0439 \u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u042f\u043d\u0434\u0435\u043a\u0441\u0430. \u0414\u043b\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430 \u044d\u0442\u043e \u043f\u043e\u043b\u0434\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u00ab\u043a\u0443\u043f\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043b\u0434\u043d\u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0439\u0442\u0435\u00bb \u043d\u0438\u043a\u0442\u043e \u0431\u044b \u043d\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u043b.\u0412 \u043d\u043e\u0432\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u00ab\u043e\u043f\u043b\u0430\u0442\u0430 \u0437\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u00bb \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0441\u0432\u043e\u044e \u043a\u0432\u043e\u0442\u0443 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441.\u041e\u0431\u043b\u0430\u043a\u0435, \u043d\u043e \u044d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0448\u0430\u0433\u043e\u0432: \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043e\u0431\u043b\u0430\u043a\u043e, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c API-\u043a\u043b\u044e\u0447. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u00ab\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0438\u043b\u0438\u043b\u0430\u0441\u044c. \u041b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0432\u044b\u0445\u043e\u0434 \u2014 \u0441\u0430\u043c\u043e\u0439 \u0441\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u043e\u0439 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 API. \u042f \u0434\u0435\u0440\u0436\u0443 API-\u043a\u043b\u044e\u0447 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u0443 \u0441\u0435\u0431\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u0430\u0440\u043c\u0430\u043d\u0430, \u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u043a\u0432\u043e\u0442\u0443 \u0432 \u0440\u0443\u0431\u043b\u044f\u0445: \u00ab10 000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0437\u0430 700 \u20bd\u00bb. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e OAuth, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 429 \u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u043f\u043e \u0442\u043e\u043a\u0435\u043d\u0443. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u2014 \u0441\u0432\u043e\u0439 \u043b\u0438\u043c\u0438\u0442, \u0438 \u043e\u043d \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e \u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442.\u0417\u0432\u0443\u0447\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u0430 \u0434\u0435\u043b\u0435 \u2014 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0451: \u0431\u044d\u043a, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438, \u0431\u043e\u0442 \u0432 Telegram, \u043b\u0435\u043d\u0434\u0438\u043d\u0433, \u043e\u043f\u043b\u0430\u0442\u044b. \u042f \u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0430 \u043d\u0430 \u044d\u0442\u043e \u043d\u0435\u0434\u0435\u043b\u044e \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0430.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u0431\u044b\u043b\u043e \u0438 \u0441\u0442\u0430\u043b\u043e\u0411\u044b\u043b\u043e:[\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u0435] \u2500\u2500\u043e\u0431\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d\u2500\u2500&gt; [API Wordstat]       \u25b2       \u2502   [OAuth: \u043c\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0431\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432]\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0435\u0440\u0436\u0430\u043b\u0430 \u0432\u0441\u0451: \u043e\u0431\u0449\u0438\u0439 OAuth-\u0442\u043e\u043a\u0435\u043d \u042f\u043d\u0434\u0435\u043a\u0441\u0430 (\u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438), \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 (RSA \u0432 \u0444\u0430\u0439\u043b\u0435), \u0442\u0440\u0438\u0430\u043b (\u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u0442\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440 Windows + fingerprint \u0436\u0435\u043b\u0435\u0437\u0430). \u041e\u0434\u0438\u043d \u0442\u043e\u043a\u0435\u043d \u2014 \u043e\u0434\u0438\u043d \u043e\u0431\u0449\u0438\u0439 \u043f\u0443\u043b \u043d\u0430 5000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441\u0440\u0430\u0437\u0443.\u0421\u0442\u0430\u043b\u043e:[\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430] \u2500\u2500License: &lt;token&gt;\u2500\u2500&gt; [Caddy\/HTTPS] \u2500\u2500&gt; [FastAPI \u043f\u0440\u043e\u043a\u0441\u0438] \u2500\u2500API-Key\u2500\u2500&gt; [Yandex AI Studio]                                                          \u2502                                                          \u25bc                                                    [SQLite: \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438,                                                     \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u0432\u043e\u0442\u044b,                                                     \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u0443\u0447\u0451\u0442]\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442. \u041e\u043d\u0430 \u043f\u0440\u043e\u0441\u0438\u0442 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0438 \u0432\u0441\u0451. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 HTTPS-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435:Authorization: License WDD-xxxxxxxx-xxxxxxxx \u2014 \u0442\u043e\u043a\u0435\u043d \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438,X-Device-Fingerprint: &lt;sha256&gt; \u2014 \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043e\u043a \u0436\u0435\u043b\u0435\u0437\u0430. \u041f\u0440\u043e\u043a\u0441\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0432\u0430\u043b\u0438\u0434\u043d\u0430, \u043d\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430, \u043d\u0435 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430, \u0438 \u0447\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043e (\u0438\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0441\u043b\u043e\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c). \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u043e\u043a \u2014 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441 \u0441 \u043c\u043e\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u043c API-\u043a\u043b\u044e\u0447\u043e\u043c, \u0442\u0440\u0430\u0442\u0438\u0442 0,02 \u20bd \u0438\u0437 \u0441\u0432\u043e\u0435\u0439 \u043a\u0432\u043e\u0442\u044b, \u0441\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442.\u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0432\u043e\u044f \u043a\u0432\u043e\u0442\u0430, \u0438 \u043e\u043d\u0430 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e OAuth, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u042f\u043d\u0434\u0435\u043a\u0441\u0430, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 429 \u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u043f\u043e \u0442\u043e\u043a\u0435\u043d\u0443.\u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0431\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432\u0421\u0442\u0430\u0440\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0441 RSA-\u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e \u0432 \u0444\u0430\u0439\u043b\u0435 \u2014 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0444\u0444\u043b\u0430\u0439\u043d-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0431\u0430\u0437\u0435:CREATE TABLE licenses (    id              INTEGER PRIMARY KEY AUTOINCREMENT,    token           TEXT UNIQUE NOT NULL,    &#8212; WDD-xxxxxxxx-xxxxxxxx    customer        TEXT,    plan            TEXT,                    &#8212; start \/ pro \/ max \/ trial    quota_total     INTEGER,    quota_used      INTEGER DEFAULT 0,    active_until    TEXT,                    &#8212; ISO date    is_blocked      INTEGER DEFAULT 0,    revenue_total   REAL DEFAULT 0,    revenue_currency TEXT DEFAULT &#8216;RUB&#8217;,    revenue_in_rub  REAL DEFAULT 0,    tg_user_id      INTEGER,    device_slots    INTEGER DEFAULT 3,    is_trial        INTEGER DEFAULT 0,    note            TEXT,    created_at      TEXT);\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u2014 SELECT * FROM licenses WHERE token = ? \u0438 \u043f\u0430\u0440\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0439. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e: \u0441\u0430\u043c \u0442\u043e\u043a\u0435\u043d \u0438 \u0435\u0441\u0442\u044c \u00ab\u043f\u043e\u0434\u043f\u0438\u0441\u044c\u00bb, \u043e\u043d \u0436\u0438\u0432\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043c\u043e\u0435\u0439 \u0431\u0430\u0437\u0435.\u042d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443. \u0420\u0430\u043d\u044c\u0448\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043b\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e, \u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043d\u043e\u0432\u044b\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438 \u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u2014 UPDATE licenses SET active_until = ?, quota_total = quota_total + ?, \u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u0430\u043b\u044c\u0448\u0435 \u0441 \u0442\u0435\u043c \u0436\u0435 \u043a\u043b\u044e\u0447\u043e\u043c.\u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0420\u0430\u0437 \u0443\u0436 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f, \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0443\u044e \u0431\u043e\u043b\u044c: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0441 \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438. \u0420\u0430\u043d\u044c\u0448\u0435 \u044f \u043d\u0438\u0447\u0435\u0433\u043e \u0441 \u044d\u0442\u0438\u043c \u043d\u0435 \u043c\u043e\u0433\u043b\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u2014 \u043c\u043e\u0433\u0443. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 fingerprint \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443:CREATE TABLE license_devices (    id           INTEGER PRIMARY KEY AUTOINCREMENT,    license_id   INTEGER NOT NULL,    fingerprint  TEXT NOT NULL,    first_seen   TEXT,    last_seen    TEXT,    UNIQUE (license_id, fingerprint));\u041b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438:def check_or_register_device(lic, fingerprint):    if not fingerprint:        return  # \u0441\u0442\u0430\u0440\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438    existing = &#8230;  # \u0443\u0436\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d?    if existing:        update_last_seen()        return    if devices_count(lic.id) &gt;= lic.device_slots:        raise HTTPException(403, &#171;\u041b\u0438\u043c\u0438\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d&#187;)    insert_device(lic.id, fingerprint)device_slots \u0443 \u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u2014 3 (\u0434\u043e\u043c + \u043e\u0444\u0438\u0441 + \u0440\u0435\u0437\u0435\u0440\u0432), \u0443 \u0442\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u2014 1. \u0426\u0438\u0444\u0440\u044b \u0432\u0437\u044f\u0442\u044b \u0441 \u043f\u043e\u0442\u043e\u043b\u043a\u0430 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0434\u0430\u0436\u0438\u00bb.Fingerprint \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0440\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043d \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e \u2014 \u043d\u0430 Windows \u0447\u0435\u0440\u0435\u0437 vol c: + ProcessorNameString \u0438\u0437 \u0440\u0435\u0435\u0441\u0442\u0440\u0430, \u043d\u0430 Mac \u0447\u0435\u0440\u0435\u0437 IOPlatformSerialNumber, \u043d\u0430 Linux \u0447\u0435\u0440\u0435\u0437 \/etc\/machine-id. \u0425\u044d\u0448 SHA-256, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c.\u0422\u0440\u0438\u0430\u043b \u0431\u0435\u0437 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439\u0412 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0442\u0440\u0438\u0430\u043b \u0436\u0438\u043b \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 Windows \u0438 \u0431\u043e\u0440\u043e\u043b\u0441\u044f \u0441 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0447\u0435\u0440\u0435\u0437 fingerprint \u0436\u0435\u043b\u0435\u0437\u0430. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u0430\u0440\u0430\u043d\u043e\u0438\u0434\u0430\u043b\u044c\u043d\u043e \u0438 \u043f\u043b\u043e\u0445\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u043b\u043e \u0430\u043f\u0433\u0440\u0435\u0439\u0434 \u0436\u0435\u043b\u0435\u0437\u0430 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.\u0412 SaaS-\u043c\u043e\u0434\u0435\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u043e\u0449\u0435: \u0442\u0440\u0438\u0430\u043b \u2014 \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0441 \u043a\u0432\u043e\u0442\u043e\u0439 500 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u0440\u043e\u043a\u043e\u043c 7 \u0434\u043d\u0435\u0439. \u0412\u044b\u0434\u0430\u0451\u0442 \u0435\u0451 Telegram-\u0431\u043e\u0442 \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:@app.post(&#171;\/admin\/trial&#187;)def admin_trial(body: TrialRequest):    existing = find_trial_by_tg_user(body.tg_user_id)    if existing:        return existing  # \u0443\u0436\u0435 \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0438 \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0442\u043e\u0442 \u0436\u0435    return create_trial(body.tg_user_id, quota=500, days=7)\u0417\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u2014 \u043f\u043e tg_user_id. \u041f\u0440\u043e\u0441\u0442\u0430\u044f, \u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f (\u0432\u0442\u043e\u0440\u044b\u043c Telegram-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c), \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f: \u043e\u0434\u0438\u043d \u0442\u0440\u0438\u0430\u043b = 10 \u20bd \u043c\u043e\u0438\u0445 \u0434\u0435\u043d\u0435\u0433 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u0440\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u043a\u0440\u0443\u0442\u043a\u0430 \u043d\u0435\u0440\u0435\u043d\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0430. \u041a\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u0440\u0435\u043d\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0439 \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438\u043b\u0438 \u0421\u041c\u0421.\u0410\u0432\u0442\u043e-\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0435\u0437 \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0439 \u0431\u043e\u043b\u0438\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u044f\u043d\u0435\u0442 \u0441 \u043c\u043e\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u0434\u0438\u043d JSON:{  &#171;latest_version&#187;: &#171;5.0&#187;,  &#171;download_url&#187;: &#171;https:\/\/api.example.com\/download\/WordstatDeepDive.exe&#187;,  &#171;min_version&#187;: &#171;5.0&#187;}\u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u0432 JSON \u0432\u044b\u0448\u0435 \u2014 \u0432 \u0441\u0442\u0430\u0442\u0443\u0441-\u0431\u0430\u0440\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u00ab\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f 5.1\u00bb. \u041a\u043b\u0438\u043a \u0432\u0435\u0434\u0451\u0442 \u043d\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u043e \u0441 \u043c\u043e\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u2014 \u044d\u0442\u043e\u0442 version.json \u043b\u0435\u0436\u0438\u0442 \u0444\u0430\u0439\u043b\u043e\u043c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \/version \u0447\u0438\u0442\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435. \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0430\u043f\u0434\u0435\u0439\u0442, \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e:\u0421\u043e\u0431\u0440\u0430\u0442\u044c .exe \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e (PyInstaller).scp \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 downloads\/ \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.nano version.json, \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c latest_version, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u0412\u0441\u0451. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e CI\/CD, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0443\u0448-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439. \u0427\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443\u0432\u0438\u0434\u0438\u0442 \u0430\u043f\u0434\u0435\u0439\u0442.\u041c\u0443\u043b\u044c\u0442\u0438-\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u0443\u0447\u0451\u0442\u041f\u043b\u0430\u0442\u044f\u0442 \u043c\u043d\u0435 \u0438\u0437 \u0420\u043e\u0441\u0441\u0438\u0438, \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0438 \u0440\u0435\u0436\u0435 \u2014 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0440\u0430\u043d. \u041d\u0430 \u0441\u0447\u0451\u0442 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u0435\u0442 \u0442\u043e \u0440\u0443\u0431\u043b\u0438, \u0442\u043e \u0431\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u0440\u0443\u0431\u043b\u0438, \u0442\u043e \u0434\u043e\u043b\u043b\u0430\u0440\u044b. \u0427\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0440\u0436\u0443, \u043d\u0443\u0436\u0435\u043d \u043e\u0431\u0449\u0438\u0439 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c \u2014 \u044f \u0432\u044b\u0431\u0440\u0430\u043b\u0430 RUB.\u0421\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 \u0442\u044f\u043d\u0435\u0442 \u043a\u0443\u0440\u0441\u044b \u0441 \u041d\u0411 \u0420\u0411 (https:\/\/www.nbrb.by\/api\/exrates\/rates?periodicity=0), \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u041a\u043e\u0433\u0434\u0430 \u044f \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u044e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u043c\u0438\u043d\u043a\u0443, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0441\u0443\u043c\u043c\u0443 \u0438 \u0432\u0430\u043b\u044e\u0442\u0443 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u0435 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b: \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0438 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442 \u0432 RUB \u043f\u043e \u043a\u0443\u0440\u0441\u0443 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043b\u0430\u0442\u0435\u0436\u0430.revenue_rub = body.revenue *&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-485616","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/485616","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=485616"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/485616\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=485616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=485616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=485616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}