Created
September 11, 2025 16:27
-
-
Save arhambelal753-ui/fbe5230e01ca7b38489988d8cdc7f927 to your computer and use it in GitHub Desktop.
sitemap_check.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| # Apni site ka sitemap URL yahan likho | |
| url = "https://holehouse.xyz/sitemap.xml" | |
| try: | |
| response = requests.get(url, timeout=10) | |
| if response.status_code == 200: | |
| print("✅ Sitemap Found!") | |
| print("Here is a preview of your sitemap content:\n") | |
| print(response.text[:500]) # | |
| else: | |
| print(f"⚠️ Sitemap not found! Status code: {response.status_code}") | |
| except Exception as e: | |
| print("❌ Error:", e) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment