ifzz / office-parser

把教育信息化体系中的Word试题,Excel试卷、知识点等数据解析成json内容。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

office-parser

Word、Excel数据解析。

配置文件

func init() {
	utils.OfficeParserQiniuCfg = &utils.Qiniu{
		//七牛key
		AccessKey: "key",
		//七牛secret
		SecretKey: "secret",
		//七牛存储的bucket
		Bucket: "ups",
		//所属区域
		Zone: "ZoneHuanan",
		//访问的域名地址
		Domain: "https://test.com",
        //路径
        UploadPrefix : "office_parser",
	}

    //初始化WMF的配置
    utils.WmfConfiguration = &utils.CT_WmfCfg{
        Uri: "http://127.0.0.1:10002/convert",
    }
}

测试

支持的类型:

  1. book
  2. paper
  3. outline
  4. cognition_map
  5. cognition_sp
  6. question

运行

$ go run main.go -h

$ go run main.go -f ./test/book.xlsx -t book

About

把教育信息化体系中的Word试题,Excel试卷、知识点等数据解析成json内容。

License:Apache License 2.0


Languages

Language:Go 100.0%