GithubHelp home page GithubHelp logo

ambadidi / html2csv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanwentao/html2csv

0.0 1.0 0.0 20 KB

A utility that extracts tables from HTML documents and converts them to CSV format

License: MIT License

Python 98.18% HTML 1.82%

html2csv's Introduction

html2csv

Build Status

html2csv is a utility that extracts tables from HTML documents and converts them to CSV format, written in Python.

asciicast

Setup

Python 3 is required (version >=3.6). Install html2csv by pip.

pip install html-to-csv

Yes, the package name is html-to-csv due to collision ;-)

Examples

Input from the standard input, and output to the standard output.

html2csv

Input from a file, and output to the standard output.

html2csv example.html

Input from files, and output to a file.

html2csv example1.html example2.html -o output.csv

Input from the network, and output to the standard output.

html2csv http://example.com

Usage

usage: html2csv [-h] [-o [OUTPUT]] [-e ENGINE] [-V] [input [input ...]]

Convert HTML table to CSV format.

positional arguments:
  input                 input sources (files, URLs, etc., default: standard
                        input)

optional arguments:
  -h, --help            show this help message and exit
  -o [OUTPUT], --output [OUTPUT]
                        output target (default: standard output)
  -e ENGINE, --engine ENGINE
                        HTML parser engine (default: html.parser or lxml if
                        installed)
  -V, --version         display version

Author and Contact

Wentao Han ([email protected])

html2csv's People

Contributors

hanwentao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.