bhargavnova / python-helper-modules

MIT License
7 stars 24 forks source link

HTML Table to CSV Extractor Script/Module #38

Closed bhargavnova closed 9 months ago

bhargavnova commented 9 months ago

Objective

Develop a Python script or module that extracts data from HTML tables and exports it into a separate CSV (Comma Separated Values) file. This tool will provide an efficient way to convert structured tabular data from web pages into a format that can be easily used and analyzed in spreadsheet software.

Features

Example Usage

import table_to_csv

# Extract tables from an HTML file and save as separate CSV files
table_to_csv.extract_and_save('sample.html', output_folder='output_folder')

# Customize CSV file names
table_to_csv.extract_and_save('sample.html', output_folder='output_folder', custom_names=['table1.csv', 'table2.csv'])

Difficulty: Beginner/Intermediate

Tags: Python, HTML, Table Extraction, CSV Export, Data Extraction

Additional Information

Contribution Guidelines

The updated guidelines can be found here.

Note: