{"id":471754,"date":"2025-08-23T15:05:30","date_gmt":"2025-08-23T15:05:30","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=471754"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=471754","title":{"rendered":"<span>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0441\u0430\u0439\u0442\u0430 \u0432 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0443\u044e Tailwind \u0432\u0435\u0440\u0441\u0442\u043a\u0443<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 100500 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0443\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0432 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0432\u0451\u0440\u0441\u0442\u043a\u0443.<br \/>\u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u0434\u0435\u043b\u0430, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0442\u0430\u043a \u0441\u0435\u0431\u0435.<br \/>\u0422\u043e \u043b\u0438 \u044f \u043a\u0440\u0438\u0432\u043e\u0440\u0443\u043a\u0438\u0439, \u0442\u043e \u043b\u0438 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0435\u0449\u0451 \u0434\u0430\u043b\u0435\u043a\u0438 \u043e\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0430.<br \/>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u0440\u043e\u0449\u0435 \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <s>\u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434<\/s> \u2014 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python (~200 \u0441\u0442\u0440\u043e\u043a).<\/p>\n<p>\u0420\u0435\u0448\u0438\u043b \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c, \u043c\u043e\u0436\u0435\u0442, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0442\u0440\u0438 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u0441\u0430\u0439\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>\u0414\u0435\u0441\u043a\u0442\u043e\u043f-\u0432\u0435\u0440\u0441\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u0430\u043d\u0448\u0435\u0442<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0434\u043d\u0443 HTML-\u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0443\u044e \u0432\u0451\u0440\u0441\u0442\u043a\u0443 (\u0434\u0435\u0441\u043a\u0442\u043e\u043f, \u043f\u043b\u0430\u043d\u0448\u0435\u0442, \u043c\u043e\u0431\u0438\u043b\u0430) \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/tailwindcss.com\/\" rel=\"noopener noreferrer nofollow\">Tailwind CSS<\/a>.<\/p>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<h4>Habr<\/h4>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 \u0445\u0430\u0431\u0440\u0435:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/901\/fc3\/973\/901fc397340d8056e834e2a0f1d07cda.png\" width=\"780\" height=\"440\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/901\/fc3\/973\/901fc397340d8056e834e2a0f1d07cda.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/901\/fc3\/973\/901fc397340d8056e834e2a0f1d07cda.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<div class=\"floating-image\">\n<p><a href=\"https:\/\/codepen.io\/Rilkener\/pen\/YPyezJo\" rel=\"noopener noreferrer nofollow\">https:\/\/codepen.io\/Rilkener\/pen\/YPyezJo<\/a><\/p>\n<\/div>\n<p>\u041d\u0430 \u0432\u043a\u0443\u0441 \u0438 \u0446\u0432\u0435\u0442 \u0444\u043b\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u044b \u0440\u0430\u0437\u043d\u044b\u0435, \u043d\u043e \u043f\u043e \u043c\u043d\u0435 \u0432 tailwind \u0425\u0430\u0431\u0440 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u0435\u0435. <\/p>\n<hr\/>\n<h2>rbc.ru<\/h2>\n<p> \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0435\u0449\u0451, \u0420\u0411\u041a-\u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0437\u0430\u0441\u043a\u0440\u0438\u043d\u0438\u0442\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c HTML.  <\/p>\n<figure class=\"bordered full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/820\/cb2\/4ac\/820cb24acc640d1e40dfa0e616ce1b12.gif\" width=\"780\" height=\"440\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/820\/cb2\/4ac\/820cb24acc640d1e40dfa0e616ce1b12.gif 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/820\/cb2\/4ac\/820cb24acc640d1e40dfa0e616ce1b12.gif 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<div class=\"floating-image\">\n<p><a href=\"https:\/\/codepen.io\/Rilkener\/pen\/KwdQKrq\" rel=\"noopener noreferrer nofollow\">https:\/\/codepen.io\/Rilkener\/pen\/KwdQKrq<\/a><\/p>\n<\/div>\n<hr\/>\n<h3>stackoverflow.com<\/h3>\n<figure class=\"bordered full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b91\/965\/09c\/b9196509ce4b49bf0be9dceb4c00ddd4.png\" width=\"780\" height=\"440\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/b91\/965\/09c\/b9196509ce4b49bf0be9dceb4c00ddd4.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b91\/965\/09c\/b9196509ce4b49bf0be9dceb4c00ddd4.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><a href=\"https:\/\/codepen.io\/Rilkener\/pen\/NPGyWeb\" rel=\"noopener noreferrer nofollow\">https:\/\/codepen.io\/Rilkener\/pen\/NPGyWeb<\/a><\/p>\n<h2>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0441\u0430\u0439\u0442\u0430<\/h2>\n<figure class=\"bordered full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e2e\/240\/573\/e2e2405730b3d8290e66362cb1641050.gif\" width=\"791\" height=\"606\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e2e\/240\/573\/e2e2405730b3d8290e66362cb1641050.gif 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e2e\/240\/573\/e2e2405730b3d8290e66362cb1641050.gif 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0411\u044b\u0441\u0442\u0440\u043e  \u0447\u0435\u0440\u0435\u0437 DevTools:<\/p>\n<ol>\n<li>\n<p>\u0414\u0435\u0441\u043a\u0442\u043e\u043f: 1440\u00d7900\u00a0(viewport). \u041c\u0430\u0441\u0448\u0442\u0430\u0431 100%<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439: Mobile S\u00a0\u2014 320\u00a0px<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u0430\u043d\u0448\u0435\u0442: 768\u00d71024\u00a0(iPad \u043f\u043e\u0440\u0442\u0440\u0435\u0442) <\/p>\n<\/li>\n<\/ol>\n<p>CTRL + SHIFT + P \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u043d\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c<\/p>\n<p><code>Capture full size screenshot<\/code><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b.<\/p>\n<p> \u0415\u0441\u043b\u0438 DevTools \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/chromewebstore.google.com\/detail\/gofullpage-full-page-scre\/fdpohaocaechififmbbbbbknoalclacl?pli=1\" rel=\"noopener noreferrer nofollow\"><strong>GoFullPage<\/strong><\/a> (Chrome\/Opera\/Edge) \u2014 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/chromewebstore.google.com\/detail\/take-webpage-screenshots\/mcbpblocgmgfnpjjppndjkmgjaogfceg?hl=ru\" rel=\"noopener noreferrer nofollow\"><strong>Fireshot<\/strong> <\/a>\u2014 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u043c\u043e\u0436\u043d\u043e  \u043e\u0431\u0440\u0435\u0437\u0430\u0442\u044c, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<p>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 <a href=\"https:\/\/platform.openai.com\/docs\/overview\" rel=\"noopener noreferrer nofollow\">https:\/\/platform.openai.com\/docs\/overview<\/a> \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043b\u044e\u0447 API.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/Rilkener\/screen2html.git cd screen2html pip install -r requirements.txt<\/code><\/pre>\n<p>\u041f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0432 \u043f\u0430\u043f\u043a\u0443 data\/input\/, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>data\/input\/desktop.png  data\/input\/mobile.png  data\/input\/tablet.png<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a:<\/p>\n<pre><code class=\"bash\">python screen2html.py data\/input\/desktop.png \\   --mobile data\/input\/mobile.png \\   --tablet data\/input\/tablet.png \\   --api-key 'YOUR_API_KEY' \\   --model gpt-5 \\  --out data\/screen2html.html<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u0434\u0430\u0441\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 html.<\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431: <a href=\"https:\/\/github.com\/Rilkener\/screen2html\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/Rilkener\/screen2html<\/a><\/p>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043d\u0430\u043f\u0438\u043b\u044c\u043d\u0438\u043a\u043e\u043c<\/h2>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u043e\u0442 tailwind \u0432 \u0432\u0438\u0434\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432.<br \/> \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0446\u0432\u0435\u0442\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0431\u0435\u0436\u0430\u0442\u044c\u0441\u044f<br \/> \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <code>bg-[#\u0432\u0430\u0448_hex]<\/code>, <code>text-[#\u0432\u0430\u0448_hex]<\/code>, <code>border-[#\u0432\u0430\u0448_hex]<\/code>.<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435,  \u0438 \u0441 \u044d\u0442\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0430\u043b\u0430\u043d\u0434\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h2>\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0440\u0451\u0442 OpenAI \u0437\u0430 \u0442\u0430\u043a\u043e\u0435?<\/h2>\n<p>\u041d\u0430 15 \u0430\u0432\u0433\u0443\u0441\u0442\u0430 2025 \u0433\u043e\u0434\u0430 \u0437\u0430 \u0441\u043a\u0440\u0438\u043d\u044b \u0425\u0430\u0431\u0440\u0430 \u0441 \u043c\u0435\u043d\u044f \u0432\u0437\u044f\u043b\u0438 $0.12,  \u043d\u0443 \u0438\u043b\u0438 \u043e\u043a\u043e\u043b\u043e 9 \u0440\u0443\u0431. \u0414\u0435\u043b\u0430\u043b\u0430 \u044d\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c gpt-5.  \u0415\u0441\u043b\u0438 \u0431\u044b \u044d\u0442\u043e \u0431\u044b\u043b\u0430 gpt-4, \u0431\u044b\u043b\u043e \u0431\u044b \u0435\u0449\u0451 \u0434\u0435\u0448\u0435\u0432\u043b\u0435.<\/p>\n<p>\u042f \u043d\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0436\u0430\u0442\u044c \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, \u0438 \u043d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f.   <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043d \u0432\u0435\u0441\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 1.5 MB,  \u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0435\u0442 400 KB,  \u0442\u043e base64-\u0441\u0442\u0440\u043e\u043a\u0430 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 3 \u0440\u0430\u0437\u0430 \u2192 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0443\u0439\u0434\u0451\u0442 \u043c\u0435\u043d\u044c\u0448\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u0435\u043d PNG (\u0431\u0435\u0437 \u0430\u043b\u044c\u0444\u0430-\u043a\u0430\u043d\u0430\u043b\u0430, \u0431\u0435\u0437 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0451\u0442\u043a\u043e\u0441\u0442\u0438),  \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u043e\u043d\u044f\u0442\u044c \u0432 JPEG \u0441 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c 85\u201390%.  \u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u0430 \u0432\u0435\u0441 \u0443\u043f\u0430\u0434\u0451\u0442 \u0432 3\u20135 \u0440\u0430\u0437. <\/p>\n<p>\u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0438 \u0432 2 \u0440\u0443\u0431\u043b\u044f \u0443\u043b\u043e\u0436\u0438\u0442\u044c\u0441\u044f.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/937454\/\"> https:\/\/habr.com\/ru\/articles\/937454\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 100500 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0443\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0432 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0432\u0451\u0440\u0441\u0442\u043a\u0443.<br \/>\u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u0434\u0435\u043b\u0430, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0442\u0430\u043a \u0441\u0435\u0431\u0435.<br \/>\u0422\u043e \u043b\u0438 \u044f \u043a\u0440\u0438\u0432\u043e\u0440\u0443\u043a\u0438\u0439, \u0442\u043e \u043b\u0438 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0435\u0449\u0451 \u0434\u0430\u043b\u0435\u043a\u0438 \u043e\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0430.<br \/>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u0440\u043e\u0449\u0435 \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <s>\u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434<\/s> \u2014 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python (~200 \u0441\u0442\u0440\u043e\u043a).<\/p>\n<p>\u0420\u0435\u0448\u0438\u043b \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c, \u043c\u043e\u0436\u0435\u0442, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0442\u0440\u0438 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u0441\u0430\u0439\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>\u0414\u0435\u0441\u043a\u0442\u043e\u043f-\u0432\u0435\u0440\u0441\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u0430\u043d\u0448\u0435\u0442<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0434\u043d\u0443 HTML-\u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0443\u044e \u0432\u0451\u0440\u0441\u0442\u043a\u0443 (\u0434\u0435\u0441\u043a\u0442\u043e\u043f, \u043f\u043b\u0430\u043d\u0448\u0435\u0442, \u043c\u043e\u0431\u0438\u043b\u0430) \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/tailwindcss.com\/\" rel=\"noopener noreferrer nofollow\">Tailwind CSS<\/a>.<\/p>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<h4>Habr<\/h4>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 \u0445\u0430\u0431\u0440\u0435:<\/p>\n<figure class=\"full-width\"><\/figure>\n<div class=\"floating-image\">\n<p><a href=\"https:\/\/codepen.io\/Rilkener\/pen\/YPyezJo\" rel=\"noopener noreferrer nofollow\">https:\/\/codepen.io\/Rilkener\/pen\/YPyezJo<\/a><\/p>\n<\/div>\n<p>\u041d\u0430 \u0432\u043a\u0443\u0441 \u0438 \u0446\u0432\u0435\u0442 \u0444\u043b\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u044b \u0440\u0430\u0437\u043d\u044b\u0435, \u043d\u043e \u043f\u043e \u043c\u043d\u0435 \u0432 tailwind \u0425\u0430\u0431\u0440 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u0435\u0435. <\/p>\n<hr\/>\n<h2>rbc.ru<\/h2>\n<p> \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0435\u0449\u0451, \u0420\u0411\u041a-\u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0437\u0430\u0441\u043a\u0440\u0438\u043d\u0438\u0442\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c HTML.  <\/p>\n<figure class=\"bordered full-width\"><\/figure>\n<div class=\"floating-image\">\n<p><a href=\"https:\/\/codepen.io\/Rilkener\/pen\/KwdQKrq\" rel=\"noopener noreferrer nofollow\">https:\/\/codepen.io\/Rilkener\/pen\/KwdQKrq<\/a><\/p>\n<\/div>\n<hr\/>\n<h3>stackoverflow.com<\/h3>\n<figure class=\"bordered full-width\"><\/figure>\n<p><a href=\"https:\/\/codepen.io\/Rilkener\/pen\/NPGyWeb\" rel=\"noopener noreferrer nofollow\">https:\/\/codepen.io\/Rilkener\/pen\/NPGyWeb<\/a><\/p>\n<h2>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0441\u0430\u0439\u0442\u0430<\/h2>\n<figure class=\"bordered full-width\"><\/figure>\n<p>\u0411\u044b\u0441\u0442\u0440\u043e  \u0447\u0435\u0440\u0435\u0437 DevTools:<\/p>\n<ol>\n<li>\n<p>\u0414\u0435\u0441\u043a\u0442\u043e\u043f: 1440\u00d7900\u00a0(viewport). \u041c\u0430\u0441\u0448\u0442\u0430\u0431 100%<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439: Mobile S\u00a0\u2014 320\u00a0px<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u0430\u043d\u0448\u0435\u0442: 768\u00d71024\u00a0(iPad \u043f\u043e\u0440\u0442\u0440\u0435\u0442) <\/p>\n<\/li>\n<\/ol>\n<p>CTRL + SHIFT + P \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u043d\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c<\/p>\n<p><code>Capture full size screenshot<\/code><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b.<\/p>\n<p> \u0415\u0441\u043b\u0438 DevTools \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/chromewebstore.google.com\/detail\/gofullpage-full-page-scre\/fdpohaocaechififmbbbbbknoalclacl?pli=1\" rel=\"noopener noreferrer nofollow\"><strong>GoFullPage<\/strong><\/a> (Chrome\/Opera\/Edge) \u2014 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/chromewebstore.google.com\/detail\/take-webpage-screenshots\/mcbpblocgmgfnpjjppndjkmgjaogfceg?hl=ru\" rel=\"noopener noreferrer nofollow\"><strong>Fireshot<\/strong> <\/a>\u2014 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u043c\u043e\u0436\u043d\u043e  \u043e\u0431\u0440\u0435\u0437\u0430\u0442\u044c, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<p>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 <a href=\"https:\/\/platform.openai.com\/docs\/overview\" rel=\"noopener noreferrer nofollow\">https:\/\/platform.openai.com\/docs\/overview<\/a> \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043b\u044e\u0447 API.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/Rilkener\/screen2html.git cd screen2html pip install -r requirements.txt<\/code><\/pre>\n<p>\u041f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0432 \u043f\u0430\u043f\u043a\u0443 data\/input\/, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>data\/input\/desktop.png  data\/input\/mobile.png  data\/input\/tablet.png<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a:<\/p>\n<pre><code class=\"bash\">python screen2html.py data\/input\/desktop.png \\   --mobile data\/input\/mobile.png \\   --tablet data\/input\/tablet.png \\   --api-key 'YOUR_API_KEY' \\   --model gpt-5 \\  --out data\/screen2html.html<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u0434\u0430\u0441\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 html.<\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431: <a href=\"https:\/\/github.com\/Rilkener\/screen2html\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/Rilkener\/screen2html<\/a><\/p>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043d\u0430\u043f\u0438\u043b\u044c\u043d\u0438\u043a\u043e\u043c<\/h2>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u043e\u0442 tailwind \u0432 \u0432\u0438\u0434\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432.<br \/> \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0446\u0432\u0435\u0442\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0431\u0435\u0436\u0430\u0442\u044c\u0441\u044f<br \/> \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <code>bg-[#\u0432\u0430\u0448_hex]<\/code>, <code>text-[#\u0432\u0430\u0448_hex]<\/code>, <code>border-[#\u0432\u0430\u0448_hex]<\/code>.<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435,  \u0438 \u0441 \u044d\u0442\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0430\u043b\u0430\u043d\u0434\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h2>\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0440\u0451\u0442 OpenAI \u0437\u0430 \u0442\u0430\u043a\u043e\u0435?<\/h2>\n<p>\u041d\u0430 15 \u0430\u0432\u0433\u0443\u0441\u0442\u0430 2025 \u0433\u043e\u0434\u0430 \u0437\u0430 \u0441\u043a\u0440\u0438\u043d\u044b \u0425\u0430\u0431\u0440\u0430 \u0441 \u043c\u0435\u043d\u044f \u0432\u0437\u044f\u043b\u0438 $0.12,  \u043d\u0443 \u0438\u043b\u0438 \u043e\u043a\u043e\u043b\u043e 9 \u0440\u0443\u0431. \u0414\u0435\u043b\u0430\u043b\u0430 \u044d\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c gpt-5.  \u0415\u0441\u043b\u0438 \u0431\u044b \u044d\u0442\u043e \u0431\u044b\u043b\u0430 gpt-4, \u0431\u044b\u043b\u043e \u0431\u044b \u0435\u0449\u0451 \u0434\u0435\u0448\u0435\u0432\u043b\u0435.<\/p>\n<p>\u042f \u043d\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0436\u0430\u0442\u044c \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, \u0438 \u043d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f.   <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043d \u0432\u0435\u0441\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 1.5 MB,  \u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0435\u0442 400 KB,  \u0442\u043e base64-\u0441\u0442\u0440\u043e\u043a\u0430 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 3 \u0440\u0430\u0437\u0430 \u2192 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0443\u0439\u0434\u0451\u0442 \u043c\u0435\u043d\u044c\u0448\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u0435\u043d PNG (\u0431\u0435\u0437 \u0430\u043b\u044c\u0444\u0430-\u043a\u0430\u043d\u0430\u043b\u0430, \u0431\u0435\u0437 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0451\u0442\u043a\u043e\u0441\u0442\u0438),  \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u043e\u043d\u044f\u0442\u044c \u0432 JPEG \u0441 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c 85\u201390%.  \u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u0430 \u0432\u0435\u0441 \u0443\u043f\u0430\u0434\u0451\u0442 \u0432 3\u20135 \u0440\u0430\u0437. <\/p>\n<p>\u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0438 \u0432 2 \u0440\u0443\u0431\u043b\u044f \u0443\u043b\u043e\u0436\u0438\u0442\u044c\u0441\u044f.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/937454\/\"> https:\/\/habr.com\/ru\/articles\/937454\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-471754","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/471754","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=471754"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/471754\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=471754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=471754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=471754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}