-
Notifications
You must be signed in to change notification settings - Fork 106
ALwrity Sitemap Analysis Tool for SEO
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.
- 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.
-
Run the Streamlit App:
streamlit run sitemap_analysis.py
-
Open the Streamlit App: Open your browser and navigate to the local URL provided by Streamlit.
-
Enter Sitemap URL: In the app, enter the URL of the sitemap you want to analyze (e.g.,
https://www.example.com/sitemap.xml
). -
Analyze Sitemap: Click the "Analyze Sitemap" button to start the analysis.
- 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.
-
Conversion to DateTime: The
lastmod
column is converted to DateTime format and set as the index for better analysis of publishing trends.
- Categorization: Sitemaps are categorized based on their names for easier understanding.
- Shortening Names: Long sitemap names are shortened for better readability.
- Publishing Trends: The tool analyzes the number of contents published each month to provide insights into publishing trends.
- 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.
- Content Amount by Categories: Visualization of the amount of content by sitemap categories using bar charts.
- Publishing Trends Over Time: Visualization of content publishing trends over time using line charts and scatter plots.
- Content Type Breakdown: Visualization of the content type breakdown using pie charts.
- Publishing Frequency by Month: Visualization of the publishing frequency by month using bar charts.
-
Enter Sitemap URL: Enter
https://www.example.com/sitemap.xml
in the provided text input field. - Click Analyze Sitemap: Start the analysis by clicking the "Analyze Sitemap" button.
-
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.
- 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.
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.
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Please open an issue or submit a pull request to contribute to this project.