Skip to Content

How to add table of content to Wix blog

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

Boost Your Website Speed!

If you want your website to run as fast as ours, consider trying Cloudways. Their powerful cloud infrastructure and optimized stack deliver exceptional performance. Free migration!
  • 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 '

  • copy the command output to wix blog
  • 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