{"id":1727,"date":"2024-02-02T11:40:56","date_gmt":"2024-02-02T11:40:56","guid":{"rendered":"https:\/\/www.devopsfreelancer.com\/blog\/?p=1727"},"modified":"2024-02-24T11:47:54","modified_gmt":"2024-02-24T11:47:54","slug":"how-to-generate-sitemap-in-flask-app","status":"publish","type":"post","link":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/","title":{"rendered":"How to Generate Sitemap in Flask APP ?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What is Sitemap ?<\/h2>\n\n\n\n<p>A sitemap is a file that lists the pages of a website to inform search engines about the organization of its content. It typically includes information such as URLs, metadata about each URL (such as when it was last updated, how often it changes, and its priority relative to other URLs on the site), and other details that help search engines crawl and index the site more effectively.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lets to create a create a virtual environment <\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python -m venv venv\n.\\venv\\Scripts\\activate\npython -m pip install --upgrade pip<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"423\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-1024x423.png\" alt=\"\" class=\"wp-image-1728\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-1024x423.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-300x124.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-768x317.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54.png 1358w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Next to install the flask app<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install flask<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"273\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-55-1024x273.png\" alt=\"\" class=\"wp-image-1729\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-55-1024x273.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-55-300x80.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-55-768x205.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-55.png 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Next to below file and put the code<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>app.py<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>import sys\r\nimport logging\r\nimport asyncio\r\nimport os\r\nfrom flask import Flask, render_template, request, send_file\r\nfrom pysitemap import crawler\r\napp = Flask(__name__)\r\ndef run_crawler(root_url):\r\n    try:\r\n        # Set up event loop\r\n        loop = asyncio.new_event_loop()\r\n        asyncio.set_event_loop(loop)\r\n        if \"--iocp\" in sys.argv:\r\n            logging.info('using iocp')\r\n            el = asyncio.ProactorEventLoop()\r\n            asyncio.set_event_loop(el)\r\n        # Run crawler and generate sitemap\r\n        crawler(root_url, out_file='sitemap.xml')\r\n        \r\n        return True  # Indicate successful crawling\r\n    except Exception as e:\r\n        app.logger.error(f'Error generating sitemap: {str(e)}')\r\n        return False  # Indicate crawling failed\r\n@app.route('\/')\r\ndef index():\r\n    return render_template('index.html', show_download_button=False)\r\n@app.route('\/generate_sitemap', methods=&#91;'POST'])\r\ndef generate_sitemap():\r\n    root_url = request.form.get('url')\r\n    if root_url:\r\n        success = run_crawler(root_url)\r\n        if success:\r\n            return render_template('index.html', show_download_button=True)\r\n        else:\r\n            return render_template('index.html', show_download_button=False, error='Error generating sitemap')\r\n    else:\r\n        return render_template('index.html', show_download_button=False, error='Invalid URL')\r\n@app.route('\/download_sitemap')\r\ndef download_sitemap():\r\n    try:\r\n        sitemap_path = os.path.join(os.getcwd(), 'sitemap.xml')\r\n        return send_file(sitemap_path, as_attachment=True)\r\n    except Exception as e:\r\n        app.logger.error(f'Error downloading sitemap: {str(e)}')\r\n        return f'Error downloading sitemap: {str(e)}'\r\nif __name__ == '__main__':\r\n    app.run(debug=True)\r\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Next to create new folder name is templates\/index.html and paste below code<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    &lt;title>Sitemap Generator&lt;\/title>\n    &lt;style>\n        \/* CSS for the processing message *\/\n        #processing-message {\n            display: none;\n        }\n    &lt;\/style>\n&lt;\/head>\n&lt;body>\n    &lt;h1>Sitemap Generator&lt;\/h1>\n    &lt;form id=\"generate-form\" action=\"\/generate_sitemap\" method=\"post\">\n        &lt;input type=\"text\" name=\"url\" placeholder=\"Enter URL\">\n        &lt;button id=\"generate-button\" type=\"submit\">Generate Sitemap&lt;\/button>\n    &lt;\/form>\n    &lt;!-- Processing message -->\n    &lt;div id=\"processing-message\">\n        &lt;p>Generating sitemap. Please wait...&lt;\/p>\n    &lt;\/div>\n    &lt;!-- Download button -->\n    &lt;div id=\"download-button\" style=\"display: none;\">\n        &lt;a href=\"\/download_sitemap\" download>&lt;button>Download Sitemap&lt;\/button>&lt;\/a>\n    &lt;\/div>\n    &lt;!-- Error message -->\n    {% if error %}\n    &lt;p>{{ error }}&lt;\/p>\n    {% endif %}\n    &lt;script>\n        \/\/ Function to show processing message and hide form\n        function showProcessing() {\n            document.getElementById('generate-form').style.display = 'none';\n            document.getElementById('processing-message').style.display = 'block';\n        }\n        \/\/ Function to hide processing message and show download button\n        function showDownloadButton() {\n            document.getElementById('processing-message').style.display = 'none';\n            document.getElementById('download-button').style.display = 'block';\n        }\n        \/\/ Event listener for form submission\n        document.getElementById('generate-form').addEventListener('submit', function() {\n            showProcessing(); \/\/ Show processing message when form is submitted\n        });\n        \/\/ Event listener for showing download button\n        {% if show_download_button %}\n        showDownloadButton(); \/\/ Show download button if available\n        {% endif %}\n    &lt;\/script>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"423\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-56-1024x423.png\" alt=\"\" class=\"wp-image-1730\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-56-1024x423.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-56-300x124.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-56-768x317.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-56.png 1310w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Now run the command <\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python -m flask --app .\\app.py run<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"409\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-57-1024x409.png\" alt=\"\" class=\"wp-image-1731\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-57-1024x409.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-57-300x120.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-57-768x307.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-57.png 1327w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Next to open development server and check<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-58-1024x576.png\" alt=\"\" class=\"wp-image-1732\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-58-1024x576.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-58-300x169.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-58-768x432.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-58.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>What is Sitemap ? A sitemap is a file that lists the pages of a website to inform search engines about the organization of its content. It&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[677],"tags":[678,685,252,684],"class_list":["post-1727","post","type-post","status-publish","format-standard","hentry","category-django","tag-django","tag-python-sitemap","tag-sitemap-generator","tag-sitemap-in-flask"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Generate Sitemap in Flask APP ? - DevOps Freelancer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Generate Sitemap in Flask APP ? - DevOps Freelancer\" \/>\n<meta property=\"og:description\" content=\"What is Sitemap ? A sitemap is a file that lists the pages of a website to inform search engines about the organization of its content. It...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Freelancer\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/amitsthakurs\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-02T11:40:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-24T11:47:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-1024x423.png\" \/>\n<meta name=\"author\" content=\"Amit Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/amits_thakurs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amit Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/\"},\"author\":{\"name\":\"Amit Kumar\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"headline\":\"How to Generate Sitemap in Flask APP ?\",\"datePublished\":\"2024-02-02T11:40:56+00:00\",\"dateModified\":\"2024-02-24T11:47:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/\"},\"wordCount\":125,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-54-1024x423.png\",\"keywords\":[\"django\",\"python-sitemap\",\"sitemap-generator\",\"sitemap-in-flask\"],\"articleSection\":[\"Django\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/\",\"name\":\"How to Generate Sitemap in Flask APP ? - DevOps Freelancer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-54-1024x423.png\",\"datePublished\":\"2024-02-02T11:40:56+00:00\",\"dateModified\":\"2024-02-24T11:47:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-54.png\",\"contentUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-54.png\",\"width\":1358,\"height\":561},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-generate-sitemap-in-flask-app\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Generate Sitemap in Flask APP ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\",\"name\":\"DevOps Freelancer\",\"description\":\"We provide DevOps | SRE | DevSecOps | MLOps Freelancing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\",\"name\":\"Amit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"caption\":\"Amit Kumar\"},\"description\":\"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\\\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/amitsthakurs\\\/\",\"https:\\\/\\\/www.instagram.com\\\/amits_thakurs\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/amits-thakurs\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/amits_thakurs\"],\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/author\\\/amit\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Generate Sitemap in Flask APP ? - DevOps Freelancer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/","og_locale":"en_US","og_type":"article","og_title":"How to Generate Sitemap in Flask APP ? - DevOps Freelancer","og_description":"What is Sitemap ? A sitemap is a file that lists the pages of a website to inform search engines about the organization of its content. It...","og_url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/","og_site_name":"DevOps Freelancer","article_author":"https:\/\/www.facebook.com\/amitsthakurs\/","article_published_time":"2024-02-02T11:40:56+00:00","article_modified_time":"2024-02-24T11:47:54+00:00","og_image":[{"url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-1024x423.png","type":"","width":"","height":""}],"author":"Amit Kumar","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/amits_thakurs","twitter_misc":{"Written by":"Amit Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#article","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/"},"author":{"name":"Amit Kumar","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"headline":"How to Generate Sitemap in Flask APP ?","datePublished":"2024-02-02T11:40:56+00:00","dateModified":"2024-02-24T11:47:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/"},"wordCount":125,"commentCount":0,"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-1024x423.png","keywords":["django","python-sitemap","sitemap-generator","sitemap-in-flask"],"articleSection":["Django"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/","url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/","name":"How to Generate Sitemap in Flask APP ? - DevOps Freelancer","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54-1024x423.png","datePublished":"2024-02-02T11:40:56+00:00","dateModified":"2024-02-24T11:47:54+00:00","author":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"breadcrumb":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#primaryimage","url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54.png","contentUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-54.png","width":1358,"height":561},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-generate-sitemap-in-flask-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopsfreelancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Generate Sitemap in Flask APP ?"}]},{"@type":"WebSite","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website","url":"https:\/\/www.devopsfreelancer.com\/blog\/","name":"DevOps Freelancer","description":"We provide DevOps | SRE | DevSecOps | MLOps Freelancing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsfreelancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b","name":"Amit Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","caption":"Amit Kumar"},"description":"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.","sameAs":["https:\/\/www.facebook.com\/amitsthakurs\/","https:\/\/www.instagram.com\/amits_thakurs\/","https:\/\/www.linkedin.com\/in\/amits-thakurs\/","https:\/\/x.com\/https:\/\/twitter.com\/amits_thakurs"],"url":"https:\/\/www.devopsfreelancer.com\/blog\/author\/amit\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=1727"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1727\/revisions"}],"predecessor-version":[{"id":1733,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1727\/revisions\/1733"}],"wp:attachment":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=1727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=1727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=1727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}