{"id":472182,"date":"2025-08-26T15:00:21","date_gmt":"2025-08-26T15:00:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=472182"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=472182","title":{"rendered":"<span>\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430 Python: requests vs headless, \u0442\u043e\u043a\u0435\u043d\u044b, \u043a\u0443\u043a\u0438, \u043f\u0440\u043e\u043a\u0441\u0438 \u0438 \u0440\u043e\u0442\u0430\u0446\u0438\u044f IP<\/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>\u0412\u044b \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0443 \u043f\u0430\u0440\u0441\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u0432\u0430\u0441 \u043b\u0435\u0442\u0430\u043b \u043d\u0430 \u0434\u0435\u043c\u043e-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u0430 \u0432 \u043f\u0440\u043e\u0434\u0435 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043d\u0430\u0447\u0430\u043b \u043b\u043e\u0432\u0438\u0442\u044c 403, 429, \u043f\u0443\u0441\u0442\u044b\u0435 HTML \u0438 \u00ab\u043a\u0443\u0434\u0430-\u0442\u043e \u0434\u0435\u043b\u0438\u0441\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438\u00bb? \u041a\u043e\u043d\u0442\u0435\u043d\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 JS, \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0442\u043e\u043a\u0435\u043d, \u043f\u043e\u0441\u043b\u0435 \u0441\u043c\u0435\u043d\u044b IP, \u0441\u0442\u0430\u0440\u0430\u044f \u0441\u0435\u0441\u0441\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0443, \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e, \u0431\u0435\u0437 \u0438\u0437\u043b\u0438\u0448\u043d\u0435\u0439 \u043c\u0430\u0433\u0438\u0438 \u0438 \u0441 \u0443\u043f\u043e\u0440\u043e\u043c \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p>\u0412\u0441\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043d\u0430 Python.<\/p>\n<h3>\u0427\u0442\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0432 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0435 \u0441\u0430\u0439\u0442\u043e\u0432<\/h3>\n<ul>\n<li>\n<p>\u043a\u043e\u0433\u0434\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 <code>requests<\/code>, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u0435\u043d headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u00ab\u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u00bb: headers, user-agent, cookies, \u043b\u043e\u043a\u0430\u043b\u044c \u0438 \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0441\u0441\u0438\u0438 \u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u2014 \u043f\u043e\u0447\u0435\u043c\u0443 \u00ab\u043d\u043e\u0432\u044b\u0439 IP = \u043d\u043e\u0432\u0430\u044f \u0441\u0435\u0441\u0441\u0438\u044f\u00bb \u0438 \u0447\u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u0434\u0435\u043b\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c, rate-limit \u0438 \u0431\u044d\u043a\u043e\u0444\u0444\u044b* \u0431\u0435\u0437 \u0431\u0430\u043d\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u00ab\u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438\u00bb: \u0441\u043a\u0440\u043e\u043b\u043b \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 XHR\/GraphQL;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u043b\u043e\u043a \u043f\u0440\u043e \u0440\u043e\u0442\u0430\u0446\u0438\u044e IP.<\/p>\n<\/li>\n<\/ul>\n<p>*<em>\u0431\u044d\u043a\u043e\u0444\u0444<\/em> \u2014 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0443\u0434\u0430\u0432\u0448\u0438\u043c\u0438\u0441\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c\u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0430\u0443\u0437\u0430, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u0434\u043b\u0438\u043d\u043d\u0435\u0435.<\/p>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0435 Amvera \u0438\u043b\u0438 \u0433\u0434\u0435 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043f\u0430\u0440\u0441\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043b\u043e\u0432\u0438\u0442\u044c 429<\/h3>\n<p><a href=\"https:\/\/amvera.ru\" rel=\"noopener noreferrer nofollow\"><strong>Amvera<\/strong><\/a> \u2014 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u044f IT-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Python, Node.JS, JVM, Go, C#, Docker \u0438 \u043f\u0440\u043e\u0447\u0438\u0435.<\/p>\n<p>\u0412\u0430\u0436\u043d\u044b\u043c \u0431\u043e\u043d\u0443\u0441\u043e\u043c \u0434\u043b\u044f \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f:<\/p>\n<ol>\n<li>\n<p>\u0420\u043e\u0442\u0430\u0446\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 IP \u0438\u0437 \u043f\u0443\u043b\u0430. \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043f\u043e IP \u0438 429.<\/p>\n<\/li>\n<li>\n<p><strong>111 \u0440\u0443\u0431\u043b\u0435\u0439<\/strong> \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u0441\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e, \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0432\u043b\u044f\u0435\u0442 <strong>\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong> \u0434\u043e OpenAI, GrokAI, Gemini \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0441 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u0418\u0442\u0430\u043a, \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0442\u0435\u043c\u0435.<\/p>\n<h3>1. \u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 requests \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u0430 \u0438\u043b\u0438 \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 JSON-\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u2014 \u0431\u0435\u0440\u0438\u0442\u0435 <code>requests<\/code> \u043f\u043b\u044e\u0441 HTML-\u043f\u0430\u0440\u0441\u0435\u0440 (<code>lxml<\/code>, <code>BeautifulSoup<\/code>, <code>parsel<\/code>). \u042d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u0434\u0451\u0448\u0435\u0432\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 (headers \u0441 UA);<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0439\u0442\u0435 <code>Accept-Language<\/code> \u0438 <code>Referer<\/code>, \u0435\u0441\u043b\u0438 \u0441\u0430\u0439\u0442 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 5xx \u0438 429 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0431\u044d\u043a\u043e\u0444\u0444 \u0441 <code>Retry-After.<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"python\"># pip install bs4 requests lxml  import requests from bs4 import BeautifulSoup  headers = { \"User-Agent\": \"Mozilla\/5.0 ... Chrome\/124.0.0.0 Safari\/537.36\", \"Accept-Language\": \"ru-RU,ru;q=0.9,en;q=0.7\", \"Accept\": \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\", }  r = requests.get(\"https:\/\/\u043a\u0430\u043a\u043e\u0439-\u0442\u043e.\u0430\u0434\u0440\u0435\u0441\", headers=headers, timeout=30) r.raise_for_status()  soup = BeautifulSoup(r.text, \"lxml\") titles = [t.get_text(strip=True) for t in soup.select(\".title\")] <\/code><\/pre>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u043e:<\/p>\n<ul>\n<li>\n<p>\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443\u0436\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u0441\u0435\u0441\u0441\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0438 \u0434\u0435\u043c\u043e-\u0441\u0430\u0439\u0442\u043e\u0432.<\/p>\n<h3>2. \u041a\u043e\u0433\u0434\u0430 \u0431\u0435\u0437 headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043d\u0438\u043a\u0443\u0434\u0430<\/h3>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u043f\u0443\u0441\u0442\u043e\u0439 HTML, \u0430 \u0432 DevTools \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432\u0438\u0434\u043d\u043e \u0431\u043e\u0433\u0430\u0442\u044b\u0439 DOM;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e XHR\/Fetch\/GraphQL \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Reference\/Headers\/Sec-CH-UA\" rel=\"noopener noreferrer nofollow\"><code>sec-ch-ua<\/code><\/a>, WebGL, \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c, \u043b\u043e\u043a\u0430\u043b\u044f\u043c, \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u043c\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u2014 <a href=\"https:\/\/playwright.dev\/\" rel=\"noopener noreferrer nofollow\"><strong>Playwright<\/strong><\/a> \u0441 Chromium. \u041e\u043d \u0434\u0430\u0451\u0442 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 <code>sec-ch-ua<\/code>.<\/p>\n<p>\u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<pre><code class=\"python\"># pip install playwright   # playwright install  from playwright.sync_api import sync_playwright  with sync_playwright() as p:     browser = p.chromium.launch(headless=True)     ctx = browser.new_context(         user_agent=\"Mozilla\/5.0 ... Chrome\/124.0.0.0 Safari\/537.36\",         locale=\"ru-RU\",         timezone_id=\"Europe\/Moscow\",         viewport={\"width\": 1280, \"height\": 800},     )     page = ctx.new_page()     page.goto(\"https:\/\/example.com\/catalog\", wait_until=\"networkidle\", timeout=45000)     html = page.content()     print(html)     browser.close()     ctx.close() <\/code><\/pre>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0443\u0440\u0435\u0437\u0430\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u0437\u043b\u0438\u0448\u043d\u0435. \u0427\u0435\u043c \u00ab\u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u0435\u0435\u00bb \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u0442\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0437\u0430\u0449\u0438\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0439\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c \u0438 \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0443, \u044d\u0442\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0446\u0435\u043d\u044b, \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u0442 \u0438 \u0441\u0430\u043c\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0432\u0438\u0434\u0438\u0442\u0435 XHR \u0441 JSON &#8212; \u043f\u0430\u0440\u0441\u0438\u0442\u0435 JSON, \u0430 \u043d\u0435 HTML.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438 user-agent<\/h2>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 User-Agent \u0441\u0430\u043c\u043e\u043c\u0443 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0440\u0436\u0430\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e UA \u0438 \u0443\u043c\u0435\u044e\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p><code>fake-useragent<\/code><\/p>\n<\/li>\n<li>\n<p><code>random_user_agent<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"python\"># pip install fake-useragent  from fake_useragent import UserAgent ua = UserAgent()  headers = { \"User-Agent\": ua.random, \"Accept-Language\": \"ru-RU,ru;q=0.9,en;q=0.7\", \"Accept\": \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\", } <\/code><\/pre>\n<p>\u0412\u0430\u0436\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u0441\u0442\u0430\u0440\u044b\u0435 UA \u0447\u0430\u0449\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043f\u043e\u0434 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0448\u043b\u0451\u0442.<\/p>\n<\/li>\n<\/ul>\n<h3>4. \u041a\u0443\u043a\u0438, \u0442\u043e\u043a\u0435\u043d\u044b \u0438 \u00ab\u043d\u043e\u0432\u044b\u0439 IP = \u043d\u043e\u0432\u0430\u044f \u0441\u0435\u0441\u0441\u0438\u044f\u00bb<\/h3>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u0435\u0441\u0441\u0438\u044e \u043a IP-\u0430\u0434\u0440\u0435\u0441\u0443.<br \/>\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u0443\u044e \u043a\u0443\u043a\u0443 \u043d\u0430 IP <strong>A<\/strong>, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043f\u043e\u0448\u043b\u0438 \u0441 \u043d\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438 <strong>B<\/strong>, \u0441\u0435\u0440\u0432\u0435\u0440 \u044d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0432\u043e\u0441\u043f\u0440\u0438\u043c\u0435\u0442 \u043a\u0430\u043a \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u0412 \u043b\u0443\u0447\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u043d\u0443\u043b\u0438\u0442 \u0441\u0435\u0441\u0441\u0438\u044e, \u0432 \u0445\u0443\u0434\u0448\u0435\u043c \u2014 \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0440\u043d\u0451\u0442 403.<\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434\u044b:<\/h4>\n<ul>\n<li>\n<p>\u043a\u0443\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 <code>ip - cookies<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0441\u0435\u0441\u0441\u0438\u044e, \u043d\u0435 reuse (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e) \u0441\u0442\u0430\u0440\u0443\u044e;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u043e\u0434\u043d\u0438\u043c\u0438 \u0438 \u0442\u0435\u043c\u0438 \u0436\u0435 \u043a\u0443\u043a\u0430\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 IP;<\/p>\n<\/li>\n<li>\n<p>CSRF-\u0442\u043e\u043a\u0435\u043d\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u00ab\u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0435\u00bb \u043c\u0430\u0440\u043a\u0435\u0440\u044b. \u042d\u0442\u043e \u0442\u043e\u0436\u0435 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438, \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0423\u0434\u043e\u0431\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0430 Python<\/h4>\n<ol>\n<li>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u00ab\u043f\u0440\u043e\u0433\u0440\u0435\u0432\u0430\u0435\u043c\u00bb \u0441\u0435\u0441\u0441\u0438\u044e \u0432 headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u2014 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c cookies, \u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f (\u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e).<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043a\u0443\u043a\u0438 \u0432  <code>storage_state<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0438\u0445 \u0443\u0436\u0435 \u0432 \u0441\u0435\u0441\u0441\u0438\u0438 <code>requests.Session<\/code>, \u043d\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 IP.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u0441\u0445\u0435\u043c\u0430:<\/p>\n<pre><code class=\"python\">def bootstrap_session_from_browser(proxy):     # \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0441\u0441\u0438\u044e  pool = {     proxy: bootstrap_session_from_browser(proxy)     for proxy in proxies }  def fetch(url):     proxy, sess = choose_proxy(pool)     r = sess.get(url, timeout=30)      # \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u044b\u043a\u0438\u043d\u0443\u043b \u0441\u0435\u0441\u0441\u0438\u044e - \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0451\u043c     if r.status_code in (401, 403):         pool[proxy] = bootstrap_session_from_browser(proxy)         r = pool[proxy].get(url, timeout=30)      r.raise_for_status()     return r.text  <\/code><\/pre>\n<h3>5. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c, rate-limit \u0438 \u0431\u044d\u043a\u043e\u0444\u0444<\/h3>\n<p>\u0414\u0430\u0436\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u043d\u0435 \u0441\u043f\u0430\u0441\u0443\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0431\u044c\u0451\u0442\u0435 \u0441\u0430\u0439\u0442 \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0431\u044d\u043a\u043e\u0444\u0444.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c <code>Retry-After.<\/code><\/p>\n<\/li>\n<li>\n<p>\u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0441 \u0437\u0430\u043f\u0430\u0441\u043e\u043c \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0431\u044d\u043a\u043e\u0444\u0444\u0430:<\/p>\n<pre><code class=\"python\">import time, random, requests def  get_with_backoff(sess, url, retries=5, base=0.5, factor=2.0): for attempt in  range(retries):         r = sess.get(url, timeout=30) if r.status_code == 429:             ra = r.headers.get(\"Retry-After\")             wait = float(ra) if ra else base * (factor ** attempt)             time.sleep(wait + random.uniform(0, 0.5)) continue r.raise_for_status() return r.text raise RuntimeError(\"\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a\") <\/code><\/pre>\n<h3>6. \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430: \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430<\/h3>\n<p>\u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0432\u044b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438 \u0441\u0430\u0439\u0442\u044b, \u0433\u0434\u0435 \u0442\u043e\u0432\u0430\u0440\u044b \u0438\u043b\u0438 \u043f\u043e\u0441\u0442\u044b \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443, \u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u0432\u043d\u0438\u0437. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c <strong>\u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430<\/strong>. \u041e\u043d\u0430 \u0443\u0434\u043e\u0431\u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u043d\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u0436\u0438\u0437\u043d\u044c \u043f\u0430\u0440\u0441\u0435\u0440\u0443: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u043d\u0435\u043f\u043e\u043b\u043d\u0430\u044f \u0438 \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430, \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0431\u043e\u0439\u0442\u0438:<\/p>\n<h4>\u041f\u043e\u0434\u0445\u043e\u0434 1 &#8212; \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a<\/h4>\n<p>\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u044f\u043c\u043e\u0439 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443 \u0432 headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<br \/>\u041a\u043e\u0434 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e &#171;\u043a\u0440\u0443\u0442\u0438\u0442 \u043a\u043e\u043b\u0451\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u043a\u0438&#187;, \u0436\u0434\u0451\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u0441\u043d\u043e\u0432\u0430 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442. \u0422\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0442\u044f\u043d\u0443\u0442\u044c\u0441\u044f \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0438\u0437\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. <\/p>\n<p>\u041c\u0438\u043d\u0443\u0441: \u044d\u0442\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0436\u0434\u0451\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<pre><code class=\"python\">page.mouse.wheel(0, 2400) page.wait_for_timeout(800) # \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u0443\u0441\u043f\u0435\u0435\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f<\/code><\/pre>\n<h4>\u041f\u043e\u0434\u0445\u043e\u0434 2 \u2014 \u0438\u0449\u0435\u043c API<\/h4>\n<p>\u0411\u043e\u043b\u0435\u0435 \u00ab\u0445\u0430\u043a\u0435\u0440\u0441\u043a\u0438\u0439\u00bb \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442: \u043e\u0442\u043a\u0440\u044b\u0442\u044c DevTools \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043e\u0442\u043a\u0443\u0434\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0442\u044f\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435. \u041e\u0431\u044b\u0447\u043d\u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0438\u043b\u0438 \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u044e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c XHR\/GraphQL \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c &#8212; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 <code>\/api\/catalog<\/code>. \u0415\u0441\u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u043a\u043e\u0434\u0435, \u0442\u043e \u0432\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0432\u0435\u0441\u044c JSON \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043a\u0430\u0440\u0442\u043e\u0447\u0435\u043a, \u043c\u0438\u043d\u0443\u044f \u0441\u0430\u043c \u0441\u043a\u0440\u043e\u043b\u043b.<\/p>\n<p>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0447\u0435\u0440\u0435\u0437 Playwright.<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <code>page.on(\"response\", ...).<\/code><\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>\/api\/catalog<\/code>).<\/p>\n<\/li>\n<li>\n<p>\u0447\u0438\u0442\u0430\u0442\u044c JSON \u0438 \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0442\u043e\u0433: \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043d\u0430\u0434\u0451\u0436\u043d\u043e \u2014 \u0438\u0449\u0438\u0442\u0435 API \u0438 \u00ab\u0431\u0435\u0439\u0442\u0435\u00bb \u0432 \u043d\u0435\u0433\u043e.<br \/>\u0415\u0441\u043b\u0438 API \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043e \u0438\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u0435\u043d\u043e \u2014 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.<\/p>\n<h3>7. \u0412\u0430\u0436\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441: \u043f\u0443\u043b IP \u0432 Amvera \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 429<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u0435 \u043f\u0430\u0440\u0441\u0435\u0440 \u0432 <a href=\"https:\/\/amvera.ru\" rel=\"noopener noreferrer nofollow\">Amvera<\/a>, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0432\u0430\u0436\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441: <strong>\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0443\u043b IP<\/strong>. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u00ab\u0440\u0430\u0441\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u00bb \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 <strong>\u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c 429<\/strong> \u043d\u0430 \u0430\u0434\u0440\u0435\u0441, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0430\u0448\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 IP. \u0427\u0435\u043c \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><strong>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f.<\/strong><\/p>\n<\/li>\n<li>\n<p>\u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e IP \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u043d\u0438\u0436\u0435.<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u2014 \u043d\u0438\u0436\u0435 \u0448\u0430\u043d\u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e rate-limit \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e, \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432 Amvera \u0432\u0430\u043c \u0441\u0440\u0430\u0437\u0443 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0431\u043e\u043d\u0443\u0441 \u0441 \u0432\u0438\u0434\u0435 <strong>111 \u0440\u0443\u0431\u043b\u0435\u0439<\/strong> \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432. \u042d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0430\u0440\u0441\u0435\u0440 \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<\/p>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0447\u0442\u0438\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435\u0442 \u044f\u0432\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438\u043b\u0438 API, \u0447\u0442\u043e\u0431\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 IP. \u0420\u043e\u0442\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0431\u0435\u0437 \u0447\u0451\u0442\u043a\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u043b\u044c\u0437\u044f \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441 \u0443\u0439\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u043d\u043e\u0432\u043e\u0433\u043e IP.<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0446\u0435\u043b\u044c \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0441\u0441\u0438\u044e \u043a IP, \u0442\u043e \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u0430\u044f \u0441\u043c\u0435\u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0440\u0432\u0430\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u0431\u043e\u0442\u0430 Amvera \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0432 \u043b\u043e\u0433\u0435, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043e 429. \u0422\u0430\u043a, \u0432\u044b \u0441\u0440\u0430\u0437\u0443 \u0443\u0437\u043d\u0430\u0435\u0442\u0435, \u0435\u0441\u043b\u0438 \u0441 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u043e\u043c \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430\u0436\u0435 \u0441 IP-\u043f\u0443\u043b\u043e\u043c \u043d\u0435 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043e\u0442 \u0431\u044d\u043a\u043e\u0444\u0444\u043e\u0432 \u0438 \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0433\u043e \u043b\u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u042d\u0442\u043e \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043b\u0443\u0447\u0448\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 429. \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043e\u0432\u0435\u0442: \u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u044b\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044b\u0432 \u0441\u0435\u0441\u0441\u0438\u0438 \u043d\u0430 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u043d\u0435 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u043b \u0434\u0443\u0431\u043b\u0435\u0439 \u0438 \u043c\u0443\u0441\u043e\u0440\u0430 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435.<\/p>\n<h3>8. \u0427\u0430\u0441\u0442\u044b\u0435 \u043f\u043e\u043b\u043e\u043c\u043a\u0438 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0440\u0435\u0446\u0435\u043f\u0442\u044b<\/h3>\n<ul>\n<li>\n<p>403 \u0441\u0440\u0430\u0437\u0443 &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0432\u0435\u0436\u0435\u0441\u0442\u044c UA, <code>Accept-Language<\/code>, <code>Referer<\/code>, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 Playwright \u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/p>\n<\/li>\n<li>\n<p>429 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u0441\u043d\u0438\u0437\u044c\u0442\u0435 RPS, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043d\u0430 <a href=\"https:\/\/amvera.ru\" rel=\"noopener noreferrer nofollow\">Amvera<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0441\u0442\u043e\u0439 HTML \u2014 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 JS, \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0439\u0442\u0435 XHR\/GraphQL \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 headless.<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u043d\u044b\u0439 \u044f\u0437\u044b\u043a\/\u0432\u0430\u043b\u044e\u0442\u0430 \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0439\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c \u0438 \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0443 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<ul>\n<li>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 <code>requests<\/code> \u2014 \u0434\u0451\u0448\u0435\u0432\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 JS \u2014 \u0431\u0435\u0440\u0451\u043c Playwright.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0441\u0441\u0438\u0438 \u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a IP \u2014 \u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0435 \u043a\u0443\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>User-Agent-\u043e\u043c \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0411\u044d\u043a\u043e\u0444\u0444, <code>Retry-After<\/code> \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u2014 \u043e\u0441\u043d\u043e\u0432\u0430 \u0434\u043e\u043b\u0433\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0430\u0440\u0441\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0412 Amvera \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u0438\u0434\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u0443\u043b IP \u2014 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c 429 \u0431\u0435\u0437 \u044f\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u043a\u0441\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0451 \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0430 Python \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0435.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 \u0434\u043b\u044f \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f:<\/strong> \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u043c\u0438 \u043a\u0430\u043c\u043d\u044f\u043c\u0438 \u0432\u044b \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u0431\u043e\u0435\u0432\u044b\u0445 \u043f\u0430\u0440\u0441\u0435\u0440\u0430\u0445 \u043d\u0430 Python \u2014 \u0441\u0435\u0441\u0441\u0438\u0438, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043a IP, \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u0435 429, \u043d\u0435\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0435 \u043f\u0440\u043e\u043a\u0441\u0438, GraphQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u043c\u0435\u0441\u0442\u043e HTML, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043b\u043e\u043a\u0430\u043b\u0438 \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0451? \u0418 \u043a\u0430\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 user-agent \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438 \u0441\u0435\u0431\u044f \u043d\u0430\u0434\u0451\u0436\u043d\u0435\u0435 \u0443 \u0432\u0430\u0441 \u043d\u0430 \u043f\u0440\u043e\u0434\u0435? \u041e\u043f\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 \u043e\u043f\u044b\u0442 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u2014 \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438.<\/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\/940688\/\"> https:\/\/habr.com\/ru\/articles\/940688\/<\/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>\u0412\u044b \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0443 \u043f\u0430\u0440\u0441\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u0432\u0430\u0441 \u043b\u0435\u0442\u0430\u043b \u043d\u0430 \u0434\u0435\u043c\u043e-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u0430 \u0432 \u043f\u0440\u043e\u0434\u0435 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043d\u0430\u0447\u0430\u043b \u043b\u043e\u0432\u0438\u0442\u044c 403, 429, \u043f\u0443\u0441\u0442\u044b\u0435 HTML \u0438 \u00ab\u043a\u0443\u0434\u0430-\u0442\u043e \u0434\u0435\u043b\u0438\u0441\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438\u00bb? \u041a\u043e\u043d\u0442\u0435\u043d\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 JS, \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0442\u043e\u043a\u0435\u043d, \u043f\u043e\u0441\u043b\u0435 \u0441\u043c\u0435\u043d\u044b IP, \u0441\u0442\u0430\u0440\u0430\u044f \u0441\u0435\u0441\u0441\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0443, \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e, \u0431\u0435\u0437 \u0438\u0437\u043b\u0438\u0448\u043d\u0435\u0439 \u043c\u0430\u0433\u0438\u0438 \u0438 \u0441 \u0443\u043f\u043e\u0440\u043e\u043c \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p>\u0412\u0441\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043d\u0430 Python.<\/p>\n<h3>\u0427\u0442\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0432 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0435 \u0441\u0430\u0439\u0442\u043e\u0432<\/h3>\n<ul>\n<li>\n<p>\u043a\u043e\u0433\u0434\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 <code>requests<\/code>, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u0435\u043d headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u00ab\u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u00bb: headers, user-agent, cookies, \u043b\u043e\u043a\u0430\u043b\u044c \u0438 \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0441\u0441\u0438\u0438 \u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u2014 \u043f\u043e\u0447\u0435\u043c\u0443 \u00ab\u043d\u043e\u0432\u044b\u0439 IP = \u043d\u043e\u0432\u0430\u044f \u0441\u0435\u0441\u0441\u0438\u044f\u00bb \u0438 \u0447\u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u0434\u0435\u043b\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c, rate-limit \u0438 \u0431\u044d\u043a\u043e\u0444\u0444\u044b* \u0431\u0435\u0437 \u0431\u0430\u043d\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u00ab\u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438\u00bb: \u0441\u043a\u0440\u043e\u043b\u043b \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 XHR\/GraphQL;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u043b\u043e\u043a \u043f\u0440\u043e \u0440\u043e\u0442\u0430\u0446\u0438\u044e IP.<\/p>\n<\/li>\n<\/ul>\n<p>*<em>\u0431\u044d\u043a\u043e\u0444\u0444<\/em> \u2014 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0443\u0434\u0430\u0432\u0448\u0438\u043c\u0438\u0441\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c\u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0430\u0443\u0437\u0430, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u0434\u043b\u0438\u043d\u043d\u0435\u0435.<\/p>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0435 Amvera \u0438\u043b\u0438 \u0433\u0434\u0435 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043f\u0430\u0440\u0441\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043b\u043e\u0432\u0438\u0442\u044c 429<\/h3>\n<p><a href=\"https:\/\/amvera.ru\" rel=\"noopener noreferrer nofollow\"><strong>Amvera<\/strong><\/a> \u2014 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u044f IT-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Python, Node.JS, JVM, Go, C#, Docker \u0438 \u043f\u0440\u043e\u0447\u0438\u0435.<\/p>\n<p>\u0412\u0430\u0436\u043d\u044b\u043c \u0431\u043e\u043d\u0443\u0441\u043e\u043c \u0434\u043b\u044f \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f:<\/p>\n<ol>\n<li>\n<p>\u0420\u043e\u0442\u0430\u0446\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 IP \u0438\u0437 \u043f\u0443\u043b\u0430. \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043f\u043e IP \u0438 429.<\/p>\n<\/li>\n<li>\n<p><strong>111 \u0440\u0443\u0431\u043b\u0435\u0439<\/strong> \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u0441\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e, \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0432\u043b\u044f\u0435\u0442 <strong>\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong> \u0434\u043e OpenAI, GrokAI, Gemini \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0441 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u0418\u0442\u0430\u043a, \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0442\u0435\u043c\u0435.<\/p>\n<h3>1. \u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 requests \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u0430 \u0438\u043b\u0438 \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 JSON-\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u2014 \u0431\u0435\u0440\u0438\u0442\u0435 <code>requests<\/code> \u043f\u043b\u044e\u0441 HTML-\u043f\u0430\u0440\u0441\u0435\u0440 (<code>lxml<\/code>, <code>BeautifulSoup<\/code>, <code>parsel<\/code>). \u042d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u0434\u0451\u0448\u0435\u0432\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 (headers \u0441 UA);<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0439\u0442\u0435 <code>Accept-Language<\/code> \u0438 <code>Referer<\/code>, \u0435\u0441\u043b\u0438 \u0441\u0430\u0439\u0442 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 5xx \u0438 429 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0431\u044d\u043a\u043e\u0444\u0444 \u0441 <code>Retry-After.<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"python\"># pip install bs4 requests lxml  import requests from bs4 import BeautifulSoup  headers = { \"User-Agent\": \"Mozilla\/5.0 ... Chrome\/124.0.0.0 Safari\/537.36\", \"Accept-Language\": \"ru-RU,ru;q=0.9,en;q=0.7\", \"Accept\": \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\", }  r = requests.get(\"https:\/\/\u043a\u0430\u043a\u043e\u0439-\u0442\u043e.\u0430\u0434\u0440\u0435\u0441\", headers=headers, timeout=30) r.raise_for_status()  soup = BeautifulSoup(r.text, \"lxml\") titles = [t.get_text(strip=True) for t in soup.select(\".title\")] <\/code><\/pre>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u043e:<\/p>\n<ul>\n<li>\n<p>\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443\u0436\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u0441\u0435\u0441\u0441\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0438 \u0434\u0435\u043c\u043e-\u0441\u0430\u0439\u0442\u043e\u0432.<\/p>\n<h3>2. \u041a\u043e\u0433\u0434\u0430 \u0431\u0435\u0437 headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043d\u0438\u043a\u0443\u0434\u0430<\/h3>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u043f\u0443\u0441\u0442\u043e\u0439 HTML, \u0430 \u0432 DevTools \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432\u0438\u0434\u043d\u043e \u0431\u043e\u0433\u0430\u0442\u044b\u0439 DOM;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e XHR\/Fetch\/GraphQL \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Reference\/Headers\/Sec-CH-UA\" rel=\"noopener noreferrer nofollow\"><code>sec-ch-ua<\/code><\/a>, WebGL, \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c, \u043b\u043e\u043a\u0430\u043b\u044f\u043c, \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u043c\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u2014 <a href=\"https:\/\/playwright.dev\/\" rel=\"noopener noreferrer nofollow\"><strong>Playwright<\/strong><\/a> \u0441 Chromium. \u041e\u043d \u0434\u0430\u0451\u0442 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 <code>sec-ch-ua<\/code>.<\/p>\n<p>\u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<pre><code class=\"python\"># pip install playwright   # playwright install  from playwright.sync_api import sync_playwright  with sync_playwright() as p:     browser = p.chromium.launch(headless=True)     ctx = browser.new_context(         user_agent=\"Mozilla\/5.0 ... Chrome\/124.0.0.0 Safari\/537.36\",         locale=\"ru-RU\",         timezone_id=\"Europe\/Moscow\",         viewport={\"width\": 1280, \"height\": 800},     )     page = ctx.new_page()     page.goto(\"https:\/\/example.com\/catalog\", wait_until=\"networkidle\", timeout=45000)     html = page.content()     print(html)     browser.close()     ctx.close() <\/code><\/pre>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0443\u0440\u0435\u0437\u0430\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u0437\u043b\u0438\u0448\u043d\u0435. \u0427\u0435\u043c \u00ab\u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u0435\u0435\u00bb \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u0442\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0437\u0430\u0449\u0438\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0439\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c \u0438 \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0443, \u044d\u0442\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0446\u0435\u043d\u044b, \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u0442 \u0438 \u0441\u0430\u043c\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0432\u0438\u0434\u0438\u0442\u0435 XHR \u0441 JSON &#8212; \u043f\u0430\u0440\u0441\u0438\u0442\u0435 JSON, \u0430 \u043d\u0435 HTML.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438 user-agent<\/h2>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 User-Agent \u0441\u0430\u043c\u043e\u043c\u0443 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0440\u0436\u0430\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e UA \u0438 \u0443\u043c\u0435\u044e\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p><code>fake-useragent<\/code><\/p>\n<\/li>\n<li>\n<p><code>random_user_agent<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"python\"># pip install fake-useragent  from fake_useragent import UserAgent ua = UserAgent()  headers = { \"User-Agent\": ua.random, \"Accept-Language\": \"ru-RU,ru;q=0.9,en;q=0.7\", \"Accept\": \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\", } <\/code><\/pre>\n<p>\u0412\u0430\u0436\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u0441\u0442\u0430\u0440\u044b\u0435 UA \u0447\u0430\u0449\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043f\u043e\u0434 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0448\u043b\u0451\u0442.<\/p>\n<\/li>\n<\/ul>\n<h3>4. \u041a\u0443\u043a\u0438, \u0442\u043e\u043a\u0435\u043d\u044b \u0438 \u00ab\u043d\u043e\u0432\u044b\u0439 IP = \u043d\u043e\u0432\u0430\u044f \u0441\u0435\u0441\u0441\u0438\u044f\u00bb<\/h3>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u0435\u0441\u0441\u0438\u044e \u043a IP-\u0430\u0434\u0440\u0435\u0441\u0443.<br \/>\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u0443\u044e \u043a\u0443\u043a\u0443 \u043d\u0430 IP <strong>A<\/strong>, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043f\u043e\u0448\u043b\u0438 \u0441 \u043d\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438 <strong>B<\/strong>, \u0441\u0435\u0440\u0432\u0435\u0440 \u044d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0432\u043e\u0441\u043f\u0440\u0438\u043c\u0435\u0442 \u043a\u0430\u043a \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u0412 \u043b\u0443\u0447\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u043d\u0443\u043b\u0438\u0442 \u0441\u0435\u0441\u0441\u0438\u044e, \u0432 \u0445\u0443\u0434\u0448\u0435\u043c \u2014 \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0440\u043d\u0451\u0442 403.<\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434\u044b:<\/h4>\n<ul>\n<li>\n<p>\u043a\u0443\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 <code>ip - cookies<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0441\u0435\u0441\u0441\u0438\u044e, \u043d\u0435 reuse (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e) \u0441\u0442\u0430\u0440\u0443\u044e;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u043e\u0434\u043d\u0438\u043c\u0438 \u0438 \u0442\u0435\u043c\u0438 \u0436\u0435 \u043a\u0443\u043a\u0430\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 IP;<\/p>\n<\/li>\n<li>\n<p>CSRF-\u0442\u043e\u043a\u0435\u043d\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u00ab\u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0435\u00bb \u043c\u0430\u0440\u043a\u0435\u0440\u044b. \u042d\u0442\u043e \u0442\u043e\u0436\u0435 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438, \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0423\u0434\u043e\u0431\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0430 Python<\/h4>\n<ol>\n<li>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u00ab\u043f\u0440\u043e\u0433\u0440\u0435\u0432\u0430\u0435\u043c\u00bb \u0441\u0435\u0441\u0441\u0438\u044e \u0432 headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u2014 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c cookies, \u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f (\u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e).<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043a\u0443\u043a\u0438 \u0432  <code>storage_state<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0438\u0445 \u0443\u0436\u0435 \u0432 \u0441\u0435\u0441\u0441\u0438\u0438 <code>requests.Session<\/code>, \u043d\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 IP.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u0441\u0445\u0435\u043c\u0430:<\/p>\n<pre><code class=\"python\">def bootstrap_session_from_browser(proxy):     # \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0441\u0441\u0438\u044e  pool = {     proxy: bootstrap_session_from_browser(proxy)     for proxy in proxies }  def fetch(url):     proxy, sess = choose_proxy(pool)     r = sess.get(url, timeout=30)      # \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u044b\u043a\u0438\u043d\u0443\u043b \u0441\u0435\u0441\u0441\u0438\u044e - \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0451\u043c     if r.status_code in (401, 403):         pool[proxy] = bootstrap_session_from_browser(proxy)         r = pool[proxy].get(url, timeout=30)      r.raise_for_status()     return r.text  <\/code><\/pre>\n<h3>5. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c, rate-limit \u0438 \u0431\u044d\u043a\u043e\u0444\u0444<\/h3>\n<p>\u0414\u0430\u0436\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u043d\u0435 \u0441\u043f\u0430\u0441\u0443\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0431\u044c\u0451\u0442\u0435 \u0441\u0430\u0439\u0442 \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0431\u044d\u043a\u043e\u0444\u0444.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044c <code>Retry-After.<\/code><\/p>\n<\/li>\n<li>\n<p>\u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0441 \u0437\u0430\u043f\u0430\u0441\u043e\u043c \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0431\u044d\u043a\u043e\u0444\u0444\u0430:<\/p>\n<pre><code class=\"python\">import time, random, requests def  get_with_backoff(sess, url, retries=5, base=0.5, factor=2.0): for attempt in  range(retries):         r = sess.get(url, timeout=30) if r.status_code == 429:             ra = r.headers.get(\"Retry-After\")             wait = float(ra) if ra else base * (factor ** attempt)             time.sleep(wait + random.uniform(0, 0.5)) continue r.raise_for_status() return r.text raise RuntimeError(\"\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a\") <\/code><\/pre>\n<h3>6. \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430: \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430<\/h3>\n<p>\u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0432\u044b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438 \u0441\u0430\u0439\u0442\u044b, \u0433\u0434\u0435 \u0442\u043e\u0432\u0430\u0440\u044b \u0438\u043b\u0438 \u043f\u043e\u0441\u0442\u044b \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443, \u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u0432\u043d\u0438\u0437. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c <strong>\u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430<\/strong>. \u041e\u043d\u0430 \u0443\u0434\u043e\u0431\u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u043d\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u0436\u0438\u0437\u043d\u044c \u043f\u0430\u0440\u0441\u0435\u0440\u0443: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u043d\u0435\u043f\u043e\u043b\u043d\u0430\u044f \u0438 \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430, \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0431\u043e\u0439\u0442\u0438:<\/p>\n<h4>\u041f\u043e\u0434\u0445\u043e\u0434 1 &#8212; \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a<\/h4>\n<p>\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u044f\u043c\u043e\u0439 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443 \u0432 headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<br \/>\u041a\u043e\u0434 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e &#171;\u043a\u0440\u0443\u0442\u0438\u0442 \u043a\u043e\u043b\u0451\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u043a\u0438&#187;, \u0436\u0434\u0451\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u0441\u043d\u043e\u0432\u0430 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442. \u0422\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0442\u044f\u043d\u0443\u0442\u044c\u0441\u044f \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0438\u0437\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. <\/p>\n<p>\u041c\u0438\u043d\u0443\u0441: \u044d\u0442\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0436\u0434\u0451\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<pre><code class=\"python\">page.mouse.wheel(0, 2400) page.wait_for_timeout(800) # \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u0443\u0441\u043f\u0435\u0435\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f<\/code><\/pre>\n<h4>\u041f\u043e\u0434\u0445\u043e\u0434 2 \u2014 \u0438\u0449\u0435\u043c API<\/h4>\n<p>\u0411\u043e\u043b\u0435\u0435 \u00ab\u0445\u0430\u043a\u0435\u0440\u0441\u043a\u0438\u0439\u00bb \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442: \u043e\u0442\u043a\u0440\u044b\u0442\u044c DevTools \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043e\u0442\u043a\u0443\u0434\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0442\u044f\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435. \u041e\u0431\u044b\u0447\u043d\u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0438\u043b\u0438 \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u044e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c XHR\/GraphQL \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c &#8212; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 <code>\/api\/catalog<\/code>. \u0415\u0441\u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u043a\u043e\u0434\u0435, \u0442\u043e \u0432\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0432\u0435\u0441\u044c JSON \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043a\u0430\u0440\u0442\u043e\u0447\u0435\u043a, \u043c\u0438\u043d\u0443\u044f \u0441\u0430\u043c \u0441\u043a\u0440\u043e\u043b\u043b.<\/p>\n<p>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0447\u0435\u0440\u0435\u0437 Playwright.<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <code>page.on(\"response\", ...).<\/code><\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>\/api\/catalog<\/code>).<\/p>\n<\/li>\n<li>\n<p>\u0447\u0438\u0442\u0430\u0442\u044c JSON \u0438 \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0442\u043e\u0433: \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043d\u0430\u0434\u0451\u0436\u043d\u043e \u2014 \u0438\u0449\u0438\u0442\u0435 API \u0438 \u00ab\u0431\u0435\u0439\u0442\u0435\u00bb \u0432 \u043d\u0435\u0433\u043e.<br \/>\u0415\u0441\u043b\u0438 API \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043e \u0438\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u0435\u043d\u043e \u2014 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.<\/p>\n<h3>7. \u0412\u0430\u0436\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441: \u043f\u0443\u043b IP \u0432 Amvera \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 429<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u0435 \u043f\u0430\u0440\u0441\u0435\u0440 \u0432 <a href=\"https:\/\/amvera.ru\" rel=\"noopener noreferrer nofollow\">Amvera<\/a>, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0432\u0430\u0436\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441: <strong>\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0443\u043b IP<\/strong>. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u00ab\u0440\u0430\u0441\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u00bb \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 <strong>\u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c 429<\/strong> \u043d\u0430 \u0430\u0434\u0440\u0435\u0441, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0430\u0448\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 IP. \u0427\u0435\u043c \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><strong>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f.<\/strong><\/p>\n<\/li>\n<li>\n<p>\u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e IP \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u043d\u0438\u0436\u0435.<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u2014 \u043d\u0438\u0436\u0435 \u0448\u0430\u043d\u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e rate-limit \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e, \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432 Amvera \u0432\u0430\u043c \u0441\u0440\u0430\u0437\u0443 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0431\u043e\u043d\u0443\u0441 \u0441 \u0432\u0438\u0434\u0435 <strong>111 \u0440\u0443\u0431\u043b\u0435\u0439<\/strong> \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432. \u042d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0430\u0440\u0441\u0435\u0440 \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<\/p>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0447\u0442\u0438\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435\u0442 \u044f\u0432\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438\u043b\u0438 API, \u0447\u0442\u043e\u0431\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 IP. \u0420\u043e\u0442\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0431\u0435\u0437 \u0447\u0451\u0442\u043a\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u043b\u044c\u0437\u044f \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441 \u0443\u0439\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u043d\u043e\u0432\u043e\u0433\u043e IP.<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0446\u0435\u043b\u044c \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0441\u0441\u0438\u044e \u043a IP, \u0442\u043e \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u0430\u044f \u0441\u043c\u0435\u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0440\u0432\u0430\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u0431\u043e\u0442\u0430 Amvera \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0432 \u043b\u043e\u0433\u0435, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043e 429. \u0422\u0430\u043a, \u0432\u044b \u0441\u0440\u0430\u0437\u0443 \u0443\u0437\u043d\u0430\u0435\u0442\u0435, \u0435\u0441\u043b\u0438 \u0441 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u043e\u043c \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430\u0436\u0435 \u0441 IP-\u043f\u0443\u043b\u043e\u043c \u043d\u0435 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043e\u0442 \u0431\u044d\u043a\u043e\u0444\u0444\u043e\u0432 \u0438 \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0433\u043e \u043b\u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u042d\u0442\u043e \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043b\u0443\u0447\u0448\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 429. \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043e\u0432\u0435\u0442: \u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u044b\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044b\u0432 \u0441\u0435\u0441\u0441\u0438\u0438 \u043d\u0430 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u043d\u0435 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u043b \u0434\u0443\u0431\u043b\u0435\u0439 \u0438 \u043c\u0443\u0441\u043e\u0440\u0430 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435.<\/p>\n<h3>8. \u0427\u0430\u0441\u0442\u044b\u0435 \u043f\u043e\u043b\u043e\u043c\u043a\u0438 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0440\u0435\u0446\u0435\u043f\u0442\u044b<\/h3>\n<ul>\n<li>\n<p>403 \u0441\u0440\u0430\u0437\u0443 &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0432\u0435\u0436\u0435\u0441\u0442\u044c UA, <code>Accept-Language<\/code>, <code>Referer<\/code>, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 Playwright \u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/p>\n<\/li>\n<li>\n<p>429 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u0441\u043d\u0438\u0437\u044c\u0442\u0435 RPS, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043d\u0430 <a href=\"https:\/\/amvera.ru\" rel=\"noopener noreferrer nofollow\">Amvera<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0441\u0442\u043e\u0439 HTML \u2014 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 JS, \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0439\u0442\u0435 XHR\/GraphQL \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 headless.<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u043d\u044b\u0439 \u044f\u0437\u044b\u043a\/\u0432\u0430\u043b\u044e\u0442\u0430 \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0439\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c \u0438 \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0443 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<ul>\n<li>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 <code>requests<\/code> \u2014 \u0434\u0451\u0448\u0435\u0432\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 JS \u2014 \u0431\u0435\u0440\u0451\u043c Playwright.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0441\u0441\u0438\u0438 \u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a IP \u2014 \u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0435 \u043a\u0443\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>User-Agent-\u043e\u043c \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-472182","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/472182","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=472182"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/472182\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=472182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=472182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=472182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}