项目作者: flother

项目描述 :
Command-line utility to convert HTML tables into CSV files
高级语言: Python
项目地址: git://github.com/flother/htmltab.git
创建时间: 2016-04-19T22:52:14Z
项目社区:https://github.com/flother/htmltab

开源协议:MIT License

下载


HTMLTab

Results from latest push build
Code coverage report

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:

  1. $ htmltab --select p+table.wikitable.plainrowheaders https://en.wikipedia.org/wiki/Edinburgh
  2. Place of birth,Estimated resident population (2011)[117]
  3. Poland,11651
  4. India,4888
  5. Ireland,4743
  6. Mainland China [A],4188
  7. United States,3700
  8. Germany,3500
  9. Pakistan,2472
  10. Australia,2100
  11. France,2000
  12. Spain,2000
  13. South Africa,1800
  14. Canada,1800
  15. Hong Kong,1600

For further details on installation and usage, see HTMLTab’s online documentation. If you find a bug or have a feature request, please create an issue.