Clean HTML Table from tag & multiple tables

This Python script reads an HTML file, removes all tags from it, and writes the updated HTML to a new file.

Installation

pip install beautifulsoup4

Usage

  • Place the HTML file you want to modify in the same directory as the clean_table.py script
  • Open a terminal/command prompt and navigate to the directory containing the script and HTML file
  • Run the script using python clean_table.py input.html output.html, where input.html is the name of the input HTML file and output.html is the name of the output file that will contain the updated HTML
  • The script will remove all tags from the input HTML file and write the updated HTML to the output file