howtouselinux

How to add table of content to Wix blog

Table of Contents

Wix is a very popular website builder. It is used by over 100 million people across 190 different countries. Today we will share how to add a table of content to Wix blog by python code.

How to add a table of content to Wix blog?

  • curl website link > filename

curl https://www.howtouselinux.com/post/15-linux-multipath-examples-for-linux-admin >howtouselinux

  • python code to get the title id and title name automatically

#-*-coding:utf-8-*-
from bs4 import BeautifulSoup
soup = BeautifulSoup(open(‘howtouselinux’),’html.parser’)
for i in soup.find_all(‘h3’) :
id=i[‘id’]
print ‘

  • ‘ + i.string + ‘
    • copy the command output to wix blog
  • Flush/Remove all the multipath device on Linux
  • Flush/Remove selected multipath device
  • Show the existing multipath configuration in detail on Linux
  • How to Get complete HBA details on Linux
    • add the output to wix blog

    Then you can get a table of content for your link.

    Example in this post:

    15 Linux multipath examples for Linux admin

    David Cao
    David Cao

    Hey there! I am David, a Cloud & DevOps Enthusiast and 18 years of experience as a Linux engineer. I work with AWS, Git & GitHub, Linux, Python, Ansible, and Bash. I am a technical blogger and a Software Engineer, enjoy sharing my learning and contributing to open-source.