Giter Club home page Giter Club logo

google-sheets-parser's Introduction

Google Sheets Parser

Google Sheets Parser is a Java library that provides an easy and efficient way to parse data from Google Sheets. It utilizes the Google Sheets API to fetch and process spreadsheet data, making it simple to integrate Google Sheets functionality into your Java applications.

Build Status License

Table of Contents

Installation

To use the Google Sheets Parser library in your project, you can add the following Maven dependency:

<dependency>
    <groupId>com.ooce</groupId>
    <artifactId>google-sheets-parser</artifactId>
    <version>0.0.1</version>
</dependency>

Usage

To get started with the library, import the SheetConfig class and build the configuration as per your requirements. In configuration, you have to provide URL or Spreadsheet ID of your Google Sheet document. You have to provide the output format of the document. Currently, Google Sheets support output to JSON, CSV and HTML table format. Also, provide the optional GID to the config.

SheetConfig cfg = SheetConfig.builder()
				.url("https://docs.google.com/spreadsheets/d/[YOUR_SPREADSHIT_ID]/")
				.outputFormat(OutputFormat.JSON).build();

Now create an instance of SheetParser class and pass the config instance created above

SheetParser parser = new SheetParser(cfg);

Now just call parseAsString() or saveToFile() method to get the data from the spreadsheet.

String jsonString = parser.parseAsString();
//OR
parser.saveToFile(new File("D:\somefile"));
  • parseAsString(): Gets the data in String type
  • saveToFile(): Saves the data to the file location provided

Features

Google Sheets Parser currently supports getting the data from Google Sheets URL in a JSON, CSV and HTML format. More Features will be added soon

Contributing

Contributions are welcome! To contribute to the Google Sheets Parser library, please follow these steps:

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Make your changes and commit them.
  • Push your changes to your fork.
  • Submit a pull request to the main branch of the original repository.
  • Please ensure that your code adheres to the project's coding style guidelines and includes appropriate tests.

License

In this modified version, the license badge and the license section have been changed to reflect the Apache License 2.0. Make sure to update the appropriate sections in your actual project with the correct links and information.

Remember to customize other placeholders such as username/repo, com.example, google-sheets-parser, and modify the content based on your library's specific functionality and usage instructions.

Feel free to further modify and tailor this template to suit your project's needs!

google-sheets-parser's People

Contributors

outofcoffeeerror avatar

Stargazers

 avatar

Watchers

 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.