{"id":505865,"date":"2026-12-03T08:17:10","date_gmt":"2026-12-03T05:17:10","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=505865"},"modified":"2026-12-03T08:17:10","modified_gmt":"2026-12-03T05:17:10","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=505865","title":{"rendered":"\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0442\u043d\u0438 \u043a\u0440\u0430\u0443\u0434\u2011\u0441\u0441\u044b\u043b\u043e\u043a \u0437\u0430\u00a0\u043c\u0438\u043d\u0443\u0442\u0443: \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u00a0Python \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0430"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u0442\u043e \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043a\u0440\u0430\u0443\u0434\u2011\u0441\u0441\u044b\u043b\u043a\u0438 \u0438\u043b\u0438\u00a0\u0441\u0441\u044b\u043b\u043a\u0438 \u0441\u00a0\u0444\u043e\u0440\u0443\u043c\u043e\u0432, \u0437\u043d\u0430\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u0443: \u043f\u043e\u0434\u0440\u044f\u0434\u0447\u0438\u043a \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442 \u043e\u0442\u0447\u0451\u0442 \u043d\u0430 100\u2013500\u00a0\u0441\u0442\u0440\u043e\u043a, \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430. \u041b\u0438\u0431\u043e \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u00a0\u0441\u043b\u043e\u0432\u043e, \u043b\u0438\u0431\u043e \u043f\u043e\u043b\u0434\u043d\u044f \u043a\u043b\u0438\u043a\u0430\u0442\u044c \u043f\u043e\u00a0\u0441\u0441\u044b\u043b\u043a\u0430\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441\u0442\u0440\u0430\u043d\u0438\u0446.<\/p>\n<p>\u042f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u043b\u0438\u043d\u043a\u0431\u0438\u043b\u0434\u0438\u043d\u0433\u043e\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0442\u0430\u043a\u0438\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u041e\u043d \u0437\u0430\u00a0\u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u00a0\u0441\u043f\u0438\u0441\u043a\u0443 \u0438 \u0434\u043b\u044f\u00a0\u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430\u00a0\u043f\u044f\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<ol>\n<li>\n<p>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f?<\/p>\n<\/li>\n<li>\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430\u00a0\u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u043d\u0430\u00a0\u043c\u0435\u0441\u0442\u0435, \u0438 \u0441\u00a0\u043a\u0430\u043a\u0438\u043c \u0430\u043d\u043a\u043e\u0440\u043e\u043c?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a\u043e\u0439 \u0443\u00a0\u043d\u0435\u0451 rel: nofollow, ugc, sponsored \u0438\u043b\u0438\u00a0\u043e\u0431\u044b\u0447\u043d\u0430\u044f?<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u00a0\u0437\u0430\u043a\u0440\u044b\u0442\u0430\u00a0\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0447\u0435\u0440\u0435\u0437 noindex (\u0432 meta \u0438\u043b\u0438\u00a0\u0432\u00a0\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 X\u2011Robots\u2011Tag)?<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0441\u043a\u0430\u0435\u0442\u00a0\u043b\u0438 robots.txt Googlebot \u0438 \u043d\u0435\u00a0\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u00a0\u043b\u0438 canonical \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443?<\/p>\n<\/li>\n<\/ol>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 4\u00a0\u0438\u043b\u0438 5\u00a0\u043f\u043b\u043e\u0445\u043e\u0439, \u0441\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f\u00a0\u043f\u043e\u0438\u0441\u043a\u0430 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u0430, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u00ab\u0436\u0438\u0432\u0430\u044f\u00bb.<\/p>\n<h2>\u0427\u0442\u043e\u00a0\u043d\u0443\u0436\u043d\u043e<\/h2>\n<p>Python 3.9+ \u0438 \u0434\u0432\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<pre><code>pip install requests beautifulsoup4<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u041d\u0430\u00a0\u0432\u0445\u043e\u0434 CSV \u0441\u00a0\u0434\u0432\u0443\u043c\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u2011\u0434\u043e\u043d\u043e\u0440 \u0438 \u0432\u0430\u0448 \u0434\u043e\u043c\u0435\u043d (\u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 URL, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u00a0\u043d\u0435\u0433\u043e):<\/p>\n<pre><code>page,targethttps:\/\/forum.example.com\/thread\/123,mysite.ruhttps:\/\/qa.example.org\/q\/456,mysite.ru\/catalog\/<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<h2>\u041a\u043e\u0434<\/h2>\n<pre><code>#!\/usr\/bin\/env python3\"\"\"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u0440\u0430\u0443\u0434-\u0441\u0441\u044b\u043b\u043e\u043a: \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435, rel, noindex, robots.txt, canonical.\u0412\u0445\u043e\u0434: CSV \u0441 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438 page,target (\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430-\u0434\u043e\u043d\u043e\u0440 \u0438 \u0432\u0430\u0448 \u0434\u043e\u043c\u0435\u043d \u0438\u043b\u0438 URL).\u0417\u0430\u043f\u0443\u0441\u043a: python3 check_links.py links.csv &gt; report.csv\"\"\"import csv, sys, urllib.robotparserfrom concurrent.futures import ThreadPoolExecutorfrom urllib.parse import urljoin, urlparseimport requestsfrom bs4 import BeautifulSoupUA = 'Mozilla\/5.0 (compatible; link-checker\/1.0)'robots_cache = {}def robots_allows(url):    root = '{0.scheme}:\/\/{0.netloc}'.format(urlparse(url))    if root not in robots_cache:        rp = None        try:            r = requests.get(root + '\/robots.txt', headers={'User-Agent': UA}, timeout=15)            if r.status_code == 200:  # 4xx = Google \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043d\u0435\u0442                rp = urllib.robotparser.RobotFileParser()                rp.parse(r.text.splitlines())        except requests.RequestException:            pass        robots_cache[root] = rp    rp = robots_cache[root]    return True if rp is None else rp.can_fetch('Googlebot', url)def check(row):    page, target = row['page'].strip(), row['target'].strip()    res = {'page': page, 'target': target, 'status': '', 'found': 'no', 'rel': '',           'anchor': '', 'noindex': 'no', 'robots_ok': '', 'canonical_ok': ''}    try:        r = requests.get(page, headers={'User-Agent': UA}, timeout=20)    except requests.RequestException as e:        res['status'] = f'error: {type(e).__name__}'        return res    res['status'] = r.status_code    soup = BeautifulSoup(r.text, 'html.parser')    meta = soup.find('meta', attrs={'name': lambda v: v and v.lower() in ('robots', 'googlebot')})    header = r.headers.get('X-Robots-Tag', '')    if 'noindex' in header.lower() or (meta and 'noindex' in meta.get('content', '').lower()):        res['noindex'] = 'yes'    canon = soup.find('link', rel='canonical')    if canon and canon.get('href'):        res['canonical_ok'] = 'yes' if urljoin(page, canon['href']).rstrip('\/') == r.url.rstrip('\/') else 'no'    res['robots_ok'] = 'yes' if robots_allows(page) else 'no'    for a in soup.find_all('a', href=True):        if target in urljoin(page, a['href']):            res['found'] = 'yes'            res['rel'] = ' '.join(a.get('rel', [])) or 'dofollow'            res['anchor'] = a.get_text(' ', strip=True)[:80]            break    return resdef main():    rows = list(csv.DictReader(open(sys.argv[1], encoding='utf-8')))    with ThreadPoolExecutor(8) as pool:        results = list(pool.map(check, rows))    w = csv.DictWriter(sys.stdout, fieldnames=list(results[0]))    w.writeheader()    w.writerows(results)    ok = sum(r['found'] == 'yes' and r['noindex'] == 'no' and r['robots_ok'] == 'yes' for r in results)    print(f'\u0416\u0438\u0432\u044b\u0445 \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u044b\u0445: {ok} \u0438\u0437 {len(results)}', file=sys.stderr)if __name__ == '__main__':    main()<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a:<\/p>\n<pre><code>python3 check_links.py links.csv &gt; report.csv<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0412\u00a0\u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u0438\u0434\u0430 \u00ab\u0416\u0438\u0432\u044b\u0445 \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u044b\u0445: 87\u00a0\u0438\u0437 120\u00bb, \u0430\u00a0\u0432\u00a0report.csv \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u00a0\u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435.<\/p>\n<h2>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432<\/h2>\n<p><strong>robots.txt \u0447\u0435\u0440\u0435\u0437 requests, \u0430\u00a0\u043d\u0435\u00a0\u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0430\u0440\u0441\u0435\u0440.<\/strong> \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"http:\/\/RobotFileParser.read\" rel=\"noopener nofollow\"><code>RobotFileParser.read<\/code><\/a><code>()<\/code>, \u0438 \u043e\u043d \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u0447\u0442\u043e\u00a0\u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u0430. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u00a0\u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0437\u0430\u00a0Cloudflare \u043e\u0442\u0434\u0430\u044e\u0442 403\u00a0\u043d\u0430\u00a0\u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u00a0\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c User\u2011Agent urllib, \u0430\u00a0\u043f\u0430\u0440\u0441\u0435\u0440 \u043d\u0430 401\/403\u00a0\u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e\u00a0\u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u0432\u0441\u0451. Google\u00a0\u0436\u0435 \u0442\u0440\u0430\u043a\u0442\u0443\u0435\u0442 4\u00a0xx \u043d\u0430\u00a0robots.txt \u043a\u0430\u043a \u00ab\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043d\u0435\u0442\u00bb. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u044e \u0444\u0430\u0439\u043b \u0441\u0430\u043c \u0438 \u043f\u0430\u0440\u0441\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0432\u0435\u0442 200.<\/p>\n<p><strong>\u041f\u043e\u0438\u0441\u043a \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u043e\u00a0\u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044e \u0441\u0442\u0440\u043e\u043a\u0438.<\/strong> <code>target in urljoin(page, href)<\/code> \u043b\u043e\u0432\u0438\u0442 \u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0438 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u044b \u0447\u0435\u0440\u0435\u0437 <code>\/go?url=...<\/code>, \u0435\u0441\u043b\u0438 \u0432\u00a0\u043d\u0438\u0445 \u0432\u0438\u0434\u0435\u043d \u0432\u0430\u0448 \u0434\u043e\u043c\u0435\u043d. \u041b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b, \u0435\u0441\u043b\u0438 \u0434\u043e\u043c\u0435\u043d \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 URL, \u0442\u0430\u043a \u0447\u0442\u043e\u00a0\u043b\u0443\u0447\u0448\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d \u0446\u0435\u043b\u0438\u043a\u043e\u043c.<\/p>\n<p><strong>Nofollow \u043d\u0435\u00a0\u043f\u0440\u0438\u0433\u043e\u0432\u043e\u0440.<\/strong> \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0444\u043e\u0440\u0443\u043c\u043e\u0432 \u0441\u0442\u0430\u0432\u044f\u0442 nofollow \u0438\u043b\u0438\u00a0ugc \u043d\u0430\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0438 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e: Google \u0441 2019\u00a0\u0433\u043e\u0434\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u043e\u0439, \u0430\u00a0\u043d\u0435\u00a0\u0437\u0430\u043f\u0440\u0435\u0442\u043e\u043c. \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 rel, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u0443, \u0430\u00a0\u043d\u0435\u00a0\u0447\u0442\u043e\u0431\u044b \u0432\u044b\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<p><strong>JavaScript\u2011\u0444\u043e\u0440\u0443\u043c\u044b.<\/strong> \u0415\u0441\u043b\u0438 \u0444\u043e\u0440\u0443\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043d\u0430\u00a0\u043a\u043b\u0438\u0435\u043d\u0442\u0435, requests \u0443\u0432\u0438\u0434\u0438\u0442 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u0422\u0430\u043a\u0438\u0445 \u043f\u043b\u043e\u0449\u0430\u0434\u043e\u043a \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u0434\u043b\u044f\u00a0\u043d\u0438\u0445 \u043d\u0443\u0436\u0435\u043d Playwright, \u0432\u00a0\u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u0435\u0433\u043e \u043d\u0435\u00a0\u0442\u0430\u0449\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c.<\/p>\n<h2>\u0427\u0442\u043e\u00a0\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438<\/h2>\n<ul>\n<li>\n<p><code>status<\/code> \u043d\u0435 200\u00a0\u0438\u043b\u0438 <code>found = no<\/code>: \u0441\u0441\u044b\u043b\u043a\u0443 \u0443\u0434\u0430\u043b\u0438\u043b\u0438, \u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0443.<\/p>\n<\/li>\n<li>\n<p><code>noindex = yes<\/code> \u0438\u043b\u0438 <code>robots_ok = no<\/code>: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435\u00a0\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432\u00a0\u0438\u043d\u0434\u0435\u043a\u0441, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u00a0\u0434\u0430\u0441\u0442.<\/p>\n<\/li>\n<li>\n<p><code>canonical_ok = no<\/code>: canonical \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432\u0435\u0441 \u0443\u0439\u0434\u0451\u0442 \u0442\u0443\u0434\u0430 (\u0438\u043b\u0438 \u043d\u0438\u043a\u0443\u0434\u0430).<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u043a\u043e\u0440\u044b: \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 <code>anchor<\/code> \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430\u00a0\u2014 \u0442\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043b\u044e\u0447, \u044d\u0442\u043e \u043f\u043e\u0432\u043e\u0434 \u043d\u0430\u0441\u0442\u043e\u0440\u043e\u0436\u0438\u0442\u044c\u0441\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u042f \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u044e \u043e\u0442\u0447\u0451\u0442 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0434\u0430\u0447\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 2\u20133\u00a0\u043c\u0435\u0441\u044f\u0446\u0430: \u0447\u0430\u0441\u0442\u044c \u0441\u0441\u044b\u043b\u043e\u043a \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u2011\u0437\u0430 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u0447\u0438\u0441\u0442\u043e\u043a \u0444\u043e\u0440\u0443\u043c\u043e\u0432.<\/p>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e\u2011\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0441\u0430\u043c\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b\u2011\u0434\u043e\u043d\u043e\u0440\u0430 \u0431\u0435\u0437\u00a0\u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0432\u044b\u0434\u0430\u0447\u0438.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1115318\/\">https:\/\/habr.com\/ru\/articles\/1115318\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0442\u043e \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043a\u0440\u0430\u0443\u0434\u2011\u0441\u0441\u044b\u043b\u043a\u0438 \u0438\u043b\u0438\u00a0\u0441\u0441\u044b\u043b\u043a\u0438 \u0441\u00a0\u0444\u043e\u0440\u0443\u043c\u043e\u0432, \u0437\u043d\u0430\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u0443: \u043f\u043e\u0434\u0440\u044f\u0434\u0447\u0438\u043a \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442 \u043e\u0442\u0447\u0451\u0442 \u043d\u0430 100\u2013500\u00a0\u0441\u0442\u0440\u043e\u043a, \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430. \u041b\u0438\u0431\u043e \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u00a0\u0441\u043b\u043e\u0432\u043e, \u043b\u0438\u0431\u043e \u043f\u043e\u043b\u0434\u043d\u044f \u043a\u043b\u0438\u043a\u0430\u0442\u044c \u043f\u043e\u00a0\u0441\u0441\u044b\u043b\u043a\u0430\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441\u0442\u0440\u0430\u043d\u0438\u0446.\u042f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u043b\u0438\u043d\u043a\u0431\u0438\u043b\u0434\u0438\u043d\u0433\u043e\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0442\u0430\u043a\u0438\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u041e\u043d \u0437\u0430\u00a0\u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u00a0\u0441\u043f\u0438\u0441\u043a\u0443 \u0438 \u0434\u043b\u044f\u00a0\u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430\u00a0\u043f\u044f\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432:\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f?\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430\u00a0\u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u043d\u0430\u00a0\u043c\u0435\u0441\u0442\u0435, \u0438 \u0441\u00a0\u043a\u0430\u043a\u0438\u043c \u0430\u043d\u043a\u043e\u0440\u043e\u043c?\u041a\u0430\u043a\u043e\u0439 \u0443\u00a0\u043d\u0435\u0451 rel: nofollow, ugc, sponsored \u0438\u043b\u0438\u00a0\u043e\u0431\u044b\u0447\u043d\u0430\u044f?\u041d\u0435\u00a0\u0437\u0430\u043a\u0440\u044b\u0442\u0430\u00a0\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0447\u0435\u0440\u0435\u0437 noindex (\u0432 meta \u0438\u043b\u0438\u00a0\u0432\u00a0\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 X\u2011Robots\u2011Tag)?\u041f\u0443\u0441\u043a\u0430\u0435\u0442\u00a0\u043b\u0438 robots.txt Googlebot \u0438 \u043d\u0435\u00a0\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u00a0\u043b\u0438 canonical \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443?\u0415\u0441\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 4\u00a0\u0438\u043b\u0438 5\u00a0\u043f\u043b\u043e\u0445\u043e\u0439, \u0441\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f\u00a0\u043f\u043e\u0438\u0441\u043a\u0430 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u0430, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u00ab\u0436\u0438\u0432\u0430\u044f\u00bb.\u0427\u0442\u043e\u00a0\u043d\u0443\u0436\u043d\u043ePython 3.9+ \u0438 \u0434\u0432\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:pip install requests beautifulsoup4\u041d\u0430\u00a0\u0432\u0445\u043e\u0434 CSV \u0441\u00a0\u0434\u0432\u0443\u043c\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u2011\u0434\u043e\u043d\u043e\u0440 \u0438 \u0432\u0430\u0448 \u0434\u043e\u043c\u0435\u043d (\u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 URL, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u00a0\u043d\u0435\u0433\u043e):page,targethttps:\/\/forum.example.com\/thread\/123,mysite.ruhttps:\/\/qa.example.org\/q\/456,mysite.ru\/catalog\/\u041a\u043e\u0434#!\/usr\/bin\/env python3&#8243;&#187;&#187;\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u0440\u0430\u0443\u0434-\u0441\u0441\u044b\u043b\u043e\u043a: \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435, rel, noindex, robots.txt, canonical.\u0412\u0445\u043e\u0434: CSV \u0441 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438 page,target (\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430-\u0434\u043e\u043d\u043e\u0440 \u0438 \u0432\u0430\u0448 \u0434\u043e\u043c\u0435\u043d \u0438\u043b\u0438 URL).\u0417\u0430\u043f\u0443\u0441\u043a: python3 check_links.py links.csv &gt; report.csv&#187;&#187;&#187;import csv, sys, urllib.robotparserfrom concurrent.futures import ThreadPoolExecutorfrom urllib.parse import urljoin, urlparseimport requestsfrom bs4 import BeautifulSoupUA = &#8216;Mozilla\/5.0 (compatible; link-checker\/1.0)&#8217;robots_cache = {}def robots_allows(url):    root = &#8216;{0.scheme}:\/\/{0.netloc}&#8217;.format(urlparse(url))    if root not in robots_cache:        rp = None        try:            r = requests.get(root + &#8216;\/robots.txt&#8217;, headers={&#8216;User-Agent&#8217;: UA}, timeout=15)            if r.status_code == 200:  # 4xx = Google \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043d\u0435\u0442                rp = urllib.robotparser.RobotFileParser()                rp.parse(r.text.splitlines())        except requests.RequestException:            pass        robots_cache[root] = rp    rp = robots_cache[root]    return True if rp is None else rp.can_fetch(&#8216;Googlebot&#8217;, url)def check(row):    page, target = row[&#8216;page&#8217;].strip(), row[&#8216;target&#8217;].strip()    res = {&#8216;page&#8217;: page, &#8216;target&#8217;: target, &#8216;status&#8217;: &#187;, &#8216;found&#8217;: &#8216;no&#8217;, &#8216;rel&#8217;: &#187;,           &#8216;anchor&#8217;: &#187;, &#8216;noindex&#8217;: &#8216;no&#8217;, &#8216;robots_ok&#8217;: &#187;, &#8216;canonical_ok&#8217;: &#187;}    try:        r = requests.get(page, headers={&#8216;User-Agent&#8217;: UA}, timeout=20)    except requests.RequestException as e:        res[&#8216;status&#8217;] = f&#8217;error: {type(e).__name__}&#8217;        return res    res[&#8216;status&#8217;] = r.status_code    soup = BeautifulSoup(r.text, &#8216;html.parser&#8217;)    meta = soup.find(&#8216;meta&#8217;, attrs={&#8216;name&#8217;: lambda v: v and v.lower() in (&#8216;robots&#8217;, &#8216;googlebot&#8217;)})    header = r.headers.get(&#8216;X-Robots-Tag&#8217;, &#187;)    if &#8216;noindex&#8217; in header.lower() or (meta and &#8216;noindex&#8217; in meta.get(&#8216;content&#8217;, &#187;).lower()):        res[&#8216;noindex&#8217;] = &#8216;yes&#8217;    canon = soup.find(&#8216;link&#8217;, rel=&#8217;canonical&#8217;)    if canon and canon.get(&#8216;href&#8217;):        res[&#8216;canonical_ok&#8217;] = &#8216;yes&#8217; if urljoin(page, canon[&#8216;href&#8217;]).rstrip(&#8216;\/&#8217;) == r.url.rstrip(&#8216;\/&#8217;) else &#8216;no&#8217;    res[&#8216;robots_ok&#8217;] = &#8216;yes&#8217; if robots_allows(page) else &#8216;no&#8217;    for a in soup.find_all(&#8216;a&#8217;, href=True):        if target in urljoin(page, a[&#8216;href&#8217;]):            res[&#8216;found&#8217;] = &#8216;yes&#8217;            res[&#8216;rel&#8217;] = &#8216; &#8216;.join(a.get(&#8216;rel&#8217;, [])) or &#8216;dofollow&#8217;            res[&#8216;anchor&#8217;] = a.get_text(&#8216; &#8216;, strip=True)[:80]            break    return resdef main():    rows = list(csv.DictReader(open(sys.argv[1], encoding=&#8217;utf-8&#8217;)))    with ThreadPoolExecutor(8) as pool:        results = list(pool.map(check, rows))    w = csv.DictWriter(sys.stdout, fieldnames=list(results[0]))    w.writeheader()    w.writerows(results)    ok = sum(r[&#8216;found&#8217;] == &#8216;yes&#8217; and r[&#8216;noindex&#8217;] == &#8216;no&#8217; and r[&#8216;robots_ok&#8217;] == &#8216;yes&#8217; for r in results)    print(f&#8217;\u0416\u0438\u0432\u044b\u0445 \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u044b\u0445: {ok} \u0438\u0437 {len(results)}&#8217;, file=sys.stderr)if __name__ == &#8216;__main__&#8217;:    main()\u0417\u0430\u043f\u0443\u0441\u043a:python3 check_links.py links.csv &gt; report.csv\u0412\u00a0\u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u0438\u0434\u0430 \u00ab\u0416\u0438\u0432\u044b\u0445 \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u044b\u0445: 87\u00a0\u0438\u0437 120\u00bb, \u0430\u00a0\u0432\u00a0report.csv \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u00a0\u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435.\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432robots.txt \u0447\u0435\u0440\u0435\u0437 requests, \u0430\u00a0\u043d\u0435\u00a0\u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0430\u0440\u0441\u0435\u0440. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b RobotFileParser.read(), \u0438 \u043e\u043d \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u0447\u0442\u043e\u00a0\u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u0430. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u00a0\u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0437\u0430\u00a0Cloudflare \u043e\u0442\u0434\u0430\u044e\u0442 403\u00a0\u043d\u0430\u00a0\u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u00a0\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c User\u2011Agent urllib, \u0430\u00a0\u043f\u0430\u0440\u0441\u0435\u0440 \u043d\u0430 401\/403\u00a0\u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e\u00a0\u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u0432\u0441\u0451. Google\u00a0\u0436\u0435 \u0442\u0440\u0430\u043a\u0442\u0443\u0435\u0442 4\u00a0xx \u043d\u0430\u00a0robots.txt \u043a\u0430\u043a \u00ab\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043d\u0435\u0442\u00bb. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u044e \u0444\u0430\u0439\u043b \u0441\u0430\u043c \u0438 \u043f\u0430\u0440\u0441\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0432\u0435\u0442 200.\u041f\u043e\u0438\u0441\u043a \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u043e\u00a0\u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044e \u0441\u0442\u0440\u043e\u043a\u0438. target in urljoin(page, href) \u043b\u043e\u0432\u0438\u0442 \u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0438 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u044b \u0447\u0435\u0440\u0435\u0437 \/go?url=&#8230;, \u0435\u0441\u043b\u0438 \u0432\u00a0\u043d\u0438\u0445 \u0432\u0438\u0434\u0435\u043d \u0432\u0430\u0448 \u0434\u043e\u043c\u0435\u043d. \u041b\u043e\u0436\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b, \u0435\u0441\u043b\u0438 \u0434\u043e\u043c\u0435\u043d \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 URL, \u0442\u0430\u043a \u0447\u0442\u043e\u00a0\u043b\u0443\u0447\u0448\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d \u0446\u0435\u043b\u0438\u043a\u043e\u043c.Nofollow \u043d\u0435\u00a0\u043f\u0440\u0438\u0433\u043e\u0432\u043e\u0440. \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0444\u043e\u0440\u0443\u043c\u043e\u0432 \u0441\u0442\u0430\u0432\u044f\u0442 nofollow \u0438\u043b\u0438\u00a0ugc \u043d\u0430\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0438 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e: Google \u0441 2019\u00a0\u0433\u043e\u0434\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u043e\u0439, \u0430\u00a0\u043d\u0435\u00a0\u0437\u0430\u043f\u0440\u0435\u0442\u043e\u043c. \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 rel, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u0443, \u0430\u00a0\u043d\u0435\u00a0\u0447\u0442\u043e\u0431\u044b \u0432\u044b\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438.JavaScript\u2011\u0444\u043e\u0440\u0443\u043c\u044b. \u0415\u0441\u043b\u0438 \u0444\u043e\u0440\u0443\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043d\u0430\u00a0\u043a\u043b\u0438\u0435\u043d\u0442\u0435, requests \u0443\u0432\u0438\u0434\u0438\u0442 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u0422\u0430\u043a\u0438\u0445 \u043f\u043b\u043e\u0449\u0430\u0434\u043e\u043a \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u0434\u043b\u044f\u00a0\u043d\u0438\u0445 \u043d\u0443\u0436\u0435\u043d Playwright, \u0432\u00a0\u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u0435\u0433\u043e \u043d\u0435\u00a0\u0442\u0430\u0449\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c.\u0427\u0442\u043e\u00a0\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438status \u043d\u0435 200\u00a0\u0438\u043b\u0438 found = no: \u0441\u0441\u044b\u043b\u043a\u0443 \u0443\u0434\u0430\u043b\u0438\u043b\u0438, \u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0443.noindex = yes \u0438\u043b\u0438 robots_ok = no: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435\u00a0\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432\u00a0\u0438\u043d\u0434\u0435\u043a\u0441, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u00a0\u0434\u0430\u0441\u0442.canonical_ok = no: canonical \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432\u0435\u0441 \u0443\u0439\u0434\u0451\u0442 \u0442\u0443\u0434\u0430 (\u0438\u043b\u0438 \u043d\u0438\u043a\u0443\u0434\u0430).\u0410\u043d\u043a\u043e\u0440\u044b: \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 anchor \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430\u00a0\u2014 \u0442\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043b\u044e\u0447, \u044d\u0442\u043e \u043f\u043e\u0432\u043e\u0434 \u043d\u0430\u0441\u0442\u043e\u0440\u043e\u0436\u0438\u0442\u044c\u0441\u044f.\u042f \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u044e \u043e\u0442\u0447\u0451\u0442 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0434\u0430\u0447\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 2\u20133\u00a0\u043c\u0435\u0441\u044f\u0446\u0430: \u0447\u0430\u0441\u0442\u044c \u0441\u0441\u044b\u043b\u043e\u043a \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u2011\u0437\u0430 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u0447\u0438\u0441\u0442\u043e\u043a \u0444\u043e\u0440\u0443\u043c\u043e\u0432.\u0411\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e\u2011\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0441\u0430\u043c\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b\u2011\u0434\u043e\u043d\u043e\u0440\u0430 \u0431\u0435\u0437\u00a0\u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0432\u044b\u0434\u0430\u0447\u0438.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1115318\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-505865","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/505865","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=505865"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/505865\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=505865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=505865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=505865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}