python convert microsoft office docs to plain text on linux

前端 未结 7 616
庸人自扰
庸人自扰 2020-12-06 05:49

Any recomendations on a method to convert .doc, .ppt, and .xls to plain text on linux using python? Really any method of conversion would be useful. I have already looked at

7条回答
  •  Happy的楠姐
    2020-12-06 06:34

    I'd go for the command line-solution (and then use the Python subprocess module to run the tools from Python).

    Convertors for msword (catdoc), excel (xls2csv) and ppt (catppt) can be found (in source form) here: http://vitus.wagner.pp.ru/software/catdoc/.

    Can't really comment on the usefullness of catppt but catdoc and xls2csv work great!

    But be sure to first search your distributions repositories... On ubuntu for example catdoc is just one fast apt-get away.

提交回复
热议问题