Convert Excel documents to wiki markup

前端 未结 11 1408
自闭症患者
自闭症患者 2021-02-13 02:32

Is it possible to convert Excel spreadsheets into MediaWiki markup? I stumpled upon strange recommendations exporting to HTML and convert it into markup. Is there a solution, ma

11条回答
  •  庸人自扰
    2021-02-13 03:01

    Here is a simple python script that I threw together for my needs. This doesn't handle cell formatting or anything of that nature, but if you just need to get a large table into the MediaWiki format, it'll do the trick. It depends on xlrd.

    Usage of this script is as simple as

    python xl2wiki.py input.xls
    

    If you want to save the output to another file, just do

    python xl2wiki.py input.xls output.txt
    

提交回复
热议问题