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: 12 months 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-02-14T23:54:51.000Z (about 1 year ago)
- Last Synced: 2025-04-09T21:52:07.758Z (12 months ago)
- Topics: cli, csv, html, python, python3, scraping, web
- Language: Python
- Homepage: https://flother.github.io/htmltab
- Size: 570 KB
- Stars: 27
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
Awesome Lists containing this project
README
# HTMLTab
[](https://github.com/flother/htmltab/actions)
[](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).