简体   繁体   中英

Script to export data from Word to Excel

I'm sorry if this is a stupid question, but I really don't have a clue how to solve this task.

I was asked to write/find a script that would go through folders with Word documents, take some data from them (for example second line in every word doc) and export them to prepaired columns in one common Excel sheet.

All the folders with Word documents are on a SharePoint site. I was not told the technology to be used to realize this, I guess there are two main options: Python or powershell.

Down below I put two pics, this is how it should approximately look like. Please, if anyone has got any thoughts, ideas or tips, it will be highly appreciated.

Example of a target file:

目标文件示例

Example of a source file:

示例源文件

You can always start by finding the API for SharePoint, which is located here:

https://github.com/ox-it/python-sharepoint

Learn to connect using your desired auth method, and then go from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM