Skip to content

ALwrity Sitemap Analysis Tool for SEO

ي edited this page Jan 18, 2025 · 1 revision

ALwrity Sitemap Analyzer Tool

Overview

The Sitemap Analyzer is a powerful tool for understanding a website's content structure and publishing trends. It fetches and analyzes the URLs listed in a sitemap, providing insights into content distribution, publishing frequency, and more.

Features

  • Fetch and Analyze Sitemaps: Retrieve and analyze URLs from a single sitemap or multiple sitemaps.
  • Content Trends Analysis: Understand content publishing trends over time.
  • Content Distribution Visualization: Visualize the distribution of content across different sitemap categories.
  • Publishing Frequency Analysis: Analyze and plot the frequency of content publishing.
  • Key Metrics Display: Display key metrics such as total URLs, total articles published, and average monthly publishing frequency.

How to Use

Launching the App

  1. Run the Streamlit App:

    streamlit run sitemap_analysis.py
  2. Open the Streamlit App: Open your browser and navigate to the local URL provided by Streamlit.

Analyzing a Sitemap

  1. Enter Sitemap URL: In the app, enter the URL of the sitemap you want to analyze (e.g., https://www.example.com/sitemap.xml).

  2. Analyze Sitemap: Click the "Analyze Sitemap" button to start the analysis.

Key Functionalities

Fetching Sitemaps

  • Single Sitemap: The tool fetches and analyzes URLs from the provided sitemap.
  • Multiple Sitemaps: If the primary sitemap contains references to additional sitemaps, the tool fetches and analyzes URLs from all referenced sitemaps.

Processing Lastmod Column

  • Conversion to DateTime: The lastmod column is converted to DateTime format and set as the index for better analysis of publishing trends.

Categorizing and Shortening Sitemaps

  • Categorization: Sitemaps are categorized based on their names for easier understanding.
  • Shortening Names: Long sitemap names are shortened for better readability.

Analyzing Content Trends

  • Publishing Trends: The tool analyzes the number of contents published each month to provide insights into publishing trends.

Displaying Key Metrics

  • Total URLs: The total number of URLs found in the sitemaps.
  • Total Articles Published: The total number of articles published.
  • Average Monthly Publishing Frequency: The average frequency of content publishing per month.

Visualizing Content Distribution

  • Content Amount by Categories: Visualization of the amount of content by sitemap categories using bar charts.

Plotting Content Trends

  • Publishing Trends Over Time: Visualization of content publishing trends over time using line charts and scatter plots.

Plotting Content Type Breakdown

  • Content Type Breakdown: Visualization of the content type breakdown using pie charts.

Plotting Publishing Frequency

  • Publishing Frequency by Month: Visualization of the publishing frequency by month using bar charts.

Example Workflow

  1. Enter Sitemap URL: Enter https://www.example.com/sitemap.xml in the provided text input field.
  2. Click Analyze Sitemap: Start the analysis by clicking the "Analyze Sitemap" button.
  3. View Results:
    • Key Metrics: View the total URLs, total articles published, and average monthly publishing frequency.
    • Content Distribution: Visualize the distribution of content across different sitemap categories.
    • Publishing Trends: Analyze content publishing trends over time.
    • Content Type Breakdown: Understand the breakdown of different content types.
    • Publishing Frequency: View the publishing frequency by month.

Troubleshooting

  • Error Fetching Sitemap: Ensure the provided sitemap URL is correct and accessible.
  • No Valid URLs Found: Check if the sitemap contains valid URLs.
  • Unexpected Errors: Review the error messages provided by the app for specific issues.

Conclusion

The Sitemap Analyzer is an essential tool for webmasters, SEO specialists, and content managers. It provides valuable insights into the content structure and publishing trends of a website, aiding in better content management and optimization strategies.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request to contribute to this project.