Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flother/htmltab
Command-line utility to convert HTML tables into CSV files
https://github.com/flother/htmltab
cli csv html python python3 scraping web
Last synced: about 1 month ago
JSON representation
Command-line utility to convert HTML tables into CSV files
- Host: GitHub
- URL: https://github.com/flother/htmltab
- Owner: flother
- License: mit
- Created: 2016-04-19T22:52:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-03T07:28:41.000Z (about 2 years ago)
- Last Synced: 2023-04-19T20:49:34.482Z (over 1 year ago)
- Topics: cli, csv, html, python, python3, scraping, web
- Language: Python
- Homepage: https://flother.github.io/htmltab
- Size: 536 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTMLTab
[![Results from latest push build](https://github.com/flother/htmltab/actions/workflows/run_tests.yml/badge.svg)](https://github.com/flother/htmltab/actions)
[![Code coverage report](https://codecov.io/gh/flother/htmltab/branch/master/graph/badge.svg)](https://codecov.io/gh/flother/htmltab)HTMLTab is a command-line utility to select a table within an HTML document and convert it to CSV. Here we can get the foreign-born population of Edinburgh from Wikipedia:
```sh
$ htmltab --select p+table.wikitable.plainrowheaders https://en.wikipedia.org/wiki/Edinburgh
Place of birth,Estimated resident population (2011)[117]
Poland,11651
India,4888
Ireland,4743
Mainland China [A],4188
United States,3700
Germany,3500
Pakistan,2472
Australia,2100
France,2000
Spain,2000
South Africa,1800
Canada,1800
Hong Kong,1600
```For further details on installation and usage, see [HTMLTab's online documentation](https://flother.github.io/htmltab). If you find a bug or have a feature request, please [create an issue](https://github.com/flother/htmltab/issues).