Skip to content

Latest commit

 

History

History
85 lines (63 loc) · 4.54 KB

File metadata and controls

85 lines (63 loc) · 4.54 KB

Python Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


Convert HTML Table into CSV

Convert a HTML Table into a CSV file using Python.


Table of Contents

Getting Started

Installation

After installing python and pip, install the below modules in the terminal:

pip install beautifulsoup4
pip install pandas    

Change your directory to the directory the python script is in and run main.py:

cd python-convert_html_table_to_csv
python3 main.py

Usage

  • The .csv file will output in the same folder as your script. You can modify the output .csv file name or location by updating the output_path variable in main.py.
  • Be sure sure to modify main.py by changing the path variable to the website URL or web page you're trying to parse the HTML from.

Resources

License

This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.

  • The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
  • For more details, see the LICENSE file in this repository.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch