Автоматизация SEO-аудита: проверяем редиректы, canonical и hreflang как граф

habrahabr.ru · world
Full story

A crawler can find a canonical tag and receive a 200 response from the server while links between pages are still broken, according to an article on automating SEO audits. The article describes checking redirects, canonical tags and hreflang as a graph, so unknown targets can be distinguished from errors and evidence can be preserved. It also presents a reproducible Python script with no third-party dependencies, a synthetic example and rules for adding the checks to CI before release.

Краулер нашёл canonical, сервер вернул 200, но связи между страницами сломаны. Показываю, как проверять редиректы, canonical и hreflang как граф: отличать неизвестную цель от ошибки, сохранять доказательства и запускать проверки перед релизом. Внутри — воспроизводимый Python-скрипт без сторонних зависимостей, синтетический пример и правила внедрения в CI. Читать далее

Read full article → Compare