Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Find Orphan Pages | Automating SEO Tasks with Python
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for SEO Specialists

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.

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 7
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Find Orphan Pages

Swipe um das Menü anzuzeigen

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.

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 7
single

single

some-alt