0
0
SEO Fundamentalsknowledge~30 mins

Identifying content decay in SEO Fundamentals - Mini Project: Build & Apply

Choose your learning style9 modes available
Identifying Content Decay
📖 Scenario: You manage a website with many articles. Over time, some articles lose visitors because their information becomes outdated or less relevant. This is called content decay.To keep your website healthy, you want to find which articles have lost visitors recently so you can update them.
🎯 Goal: You will create a simple data structure to hold article visitor counts over two months. Then, you will identify articles that lost visitors from the first month to the second month. Finally, you will mark those articles as needing updates.
📋 What You'll Learn
Create a dictionary named articles with article titles as keys and their visitor counts for the first month as values.
Create a dictionary named new_visitors with the same article titles as keys and visitor counts for the second month as values.
Create a list named decayed_articles that contains titles of articles where visitors decreased from the first to the second month.
Create a dictionary named update_status that marks each article as true if it has content decay, otherwise false.
💡 Why This Matters
🌍 Real World
Website managers track visitor numbers to keep content fresh and relevant. Identifying content decay helps prioritize updates to maintain or improve search rankings and user engagement.
💼 Career
SEO specialists and content managers use these techniques to monitor website health and improve content strategy.
Progress0 / 4 steps
1
Set up initial article visitor data
Create a dictionary called articles with these exact entries: 'How to Bake Bread': 1200, 'Gardening Tips': 900, 'Travel Guide': 1500, 'Tech News': 2000 representing visitor counts for the first month.
SEO Fundamentals
Need a hint?

Use curly braces {} to create a dictionary with the exact article titles and visitor numbers.

2
Add visitor data for the second month
Create a dictionary called new_visitors with these exact entries: 'How to Bake Bread': 1100, 'Gardening Tips': 950, 'Travel Guide': 1400, 'Tech News': 2100 representing visitor counts for the second month.
SEO Fundamentals
Need a hint?

Use a dictionary similar to articles but with the new visitor numbers.

3
Identify articles with content decay
Create a list called decayed_articles that contains article titles where the visitor count in new_visitors is less than in articles. Use a for loop with variables title and old_count to iterate over articles.items().
SEO Fundamentals
Need a hint?

Use a for loop to compare visitor counts and add titles to the list when the count decreased.

4
Mark articles needing updates
Create a dictionary called update_status where each article title from articles is a key. The value should be true if the title is in decayed_articles, otherwise false. Use a dictionary comprehension with title for title in articles.
SEO Fundamentals
Need a hint?

Use a dictionary comprehension to check if each title is in decayed_articles and assign true or false.