Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Find Orphan Pages | Automating SEO Tasks with Python
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
Python for SEO Specialists
Секція 1. Розділ 7
single

single

bookChallenge: Find Orphan Pages

Свайпніть щоб показати меню

Identifying orphan pages—pages on your website that are not linked to by any other page—is a crucial step in improving site structure and SEO. Orphan pages are often overlooked by both users and search engines, resulting in poor discoverability and lower rankings. By programmatically detecting these pages, you can ensure your site is fully interconnected and optimized for crawling.

Завдання

Swipe to start coding

Given a dictionary representing a website's internal link structure, return a list of orphan page names—pages that are not linked to by any other page.

  • The function receives site_structure, a dictionary where keys are page names and values are lists of linked page names.
  • Identify all pages that are present as keys in site_structure but do not appear in any of the values of site_structure.
  • Return a list of these orphan page names.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 7
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt