GithubHelp home page GithubHelp logo

ifzz / office-parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhexiao/office-parser

0.0 1.0 0.0 1.11 MB

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

License: Apache License 2.0

Go 100.00%

office-parser's Introduction

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

office-parser's People

Contributors

zhexiao avatar harvardfly avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.