Skip to main content

HTML2Excel Documentation

Library to convert HTML Tables to Excel file.

While libraries like pandas do read html files, they often don't work with merged cells and line breaks. This library was created with the sole intention of converting HTML tables to Excel files as they're seen while opening them with softwares such as MS Excel and LibreOffice.

A sample flask host code is provided in this link

Installation

pip install html2excel

Usage

Running from command line

python -m html2excel input_file output_file

Using as package

from html2excel import ExcelParser

input_file = '/tmp/text_file.html'
output_file = '/tmp/converted_file.xlsx'

parser = ExcelParser(input_file)
parser.to_excel(output_file)

Release files for html2excel 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for html2excel 0.0.6
File Size Uploaded
html2excel-0.0.6.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for html2excel 0.0.6
File Interpreter ABI Platform
html2excel-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / html2excel-0.0.6.tar.gz

Download URL html2excel-0.0.6.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4686ade0fe37e4cc0cd274359114e3539802f92936f351dd405421c1ae796f0c
BLAKE2b-256 checksum
How to use checksums
24bfc68f0b7639d72490bbdd4d22783a68d941fa13bcf0b26a799f7558556f76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / html2excel-0.0.6-py3-none-any.whl

Download URL html2excel-0.0.6-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e88f01e8a088c8d2009c0d88b8ea4b3db7c54e4c94f7d025c9d656901dd016d3
BLAKE2b-256 checksum
How to use checksums
afce62fdd980baf98e9cffab880bc880671dcb8c4ac061d3d30ed4dff3d3be4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

3 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page