webmonster-community/head-generator-flask

Class for best seo head

v0.0.1 2023-03-21 04:50 UTC

This package is auto-updated.

Last update: 2024-11-21 21:40:09 UTC


README

img

Head Generator (Python/Flask)

Python/Flask class that generates an optimized <head> tag for search engine optimization (SEO)

Latest Stable Version Total Downloads License

Requirements

Python 3.10 and later.

Composer

You can install the bindings via Composer. Run the following command:

composer require webmonster-community/head-generator-flask

How to use it

python app.py

The resulting was designed to improve the search engine optimization (SEO) of your pages.

<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="language" content="fr">
    <title>Page Title - Important Keywords | Brand Name</title>
    <meta name="description" content="Relevant description of the page in less than 160 characters">
    <meta name="keywords" content="Important keywords separated by commas">
    <meta name="author" content="Author or company name">
    <meta name="robots" content="noindex, nofollow">
    <meta name="robots" content="max-snippet:150, max-image-preview:large">
    <meta name="creation_date" content="2023-03-19">
    <meta name="last_modified" content="2023-03-19">
    <meta name="geo.position" content="14.610360,-61.073381">
    <meta name="ICBM" content="14.610360,-61.073381">
    <meta name="place:location:latitude" content="14.610360">
    <meta name="place:location:longitude" content="-61.073381">
    <meta name="place:location:altitude" content="1">
    <meta name="place:location:accuracy" content="100">
    <meta property="business:contact_data:locality" content="Pilot-River">
    <meta property="business:contact_data:country_name" content="Martinique">
    <meta name="referrer" content="no-referrer-when-downgrade">
    <meta name="format-detection" content="telephone=no">
    <link rel="canonical" href="https://yourdomain.tld">
    <link rel="sitemap" href="https://yourdomain.tld/sitemap.xml">
    <link rel="icon" type="image/png" href="https://yourdomain.tld/favicon.png">
    <meta name="theme-color" content="#ffffff">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="Company name">
    <meta property="og:title" content="Page Title - Important Keywords | Brand Name">
    <meta property="og:description" content="Relevant description of the page in less than 160 characters">
    <meta property="og:url" content="https://yourdomain.tld">
    <meta property="og:image" content="https://yourdomain.tld/assets/img/fb-share-1200-630.png">
    <meta property="og:image:width" content="1200">
    <meta property="og:image:height" content="630">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Page Title - Important Keywords | Brand Name">
    <meta name="twitter:description" content="Relevant description of the page in less than 160 characters">
    <meta name="twitter:image" content="https://yourdomain.tld/assets/img/twitter-share-800-400.png">
    <meta name="twitter:image:width" content="800">
    <meta name="twitter:image:height" content="400">
    <meta property="og:whatsapp" content="share">
    <meta property="og:image:whatsapp" content="https://yourdomain.tld/assets/img/whatsapp-share-300-200.png">
    <link rel="prefetch" href="https://yourdomain.tld/assets/css/style.css">
    <link rel="stylesheet" href="https://yourdomain.tld/assets/css/style.css">
    <link rel="dns-prefetch" href="https://yourdomain.tld">
    <script src="https://yourdomain.tld/assets/js/script.js"></script>
    <link rel="dns-prefetch" href="https://cdn.example.com">
    <script src="https://cdn.example.com/js/plugin.js"></script>
</head>

If you have any questions or possible improvements, we would be delighted to incorporate them and welcome you as a contributor.

Visit the Webmonster community Webmonster.

Acknowledgements

Thanks to : WebplusM, SignedA, Audrey.B, yowaiOtoko