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

    Share on facebook
    Facebook
    Share on twitter
    Twitter
    Share on linkedin
    LinkedIn
    Liquid Web Managed Word Press