All Projects → filipedeschamps → Parse Google Docs Json

filipedeschamps / Parse Google Docs Json

Licence: mit
Authenticates with Google API and parse Google Docs to JSON or Markdown

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Parse Google Docs Json

Fipe Json
🚘 FIPE API - Listagem com preço médio de veículos: carro, moto e caminhão.
Stars: ✭ 71 (-29%)
Mutual labels:  api, json
Mirth Transforms
Welcome to Datica's open-source repository of Mirth Transforms and supplementary resources!
Stars: ✭ 77 (-23%)
Mutual labels:  api, json
Covid19
JSON time-series of coronavirus cases (confirmed, deaths and recovered) per country - updated daily
Stars: ✭ 1,177 (+1077%)
Mutual labels:  api, json
Searchconsoler
R interface with Google Search Console API v3, including Search Analytics.
Stars: ✭ 99 (-1%)
Mutual labels:  api, google
Pager Api
Easy API pagination for Rails
Stars: ✭ 86 (-14%)
Mutual labels:  api, json
Dictfier
Python library to convert/serialize class instances(Objects) both flat and nested into a dictionary data structure. It's very useful in converting Python Objects into JSON format
Stars: ✭ 67 (-33%)
Mutual labels:  api, json
Parvula
An extremely simple & flexible CMS generated from flat files with a complete RESTful API —
Stars: ✭ 76 (-24%)
Mutual labels:  api, markdown
Gophergameserver
🏆 Feature packed, easy-to-use game server API for Go back-ends and Javascript clients. Tutorials and examples included!
Stars: ✭ 61 (-39%)
Mutual labels:  api, json
Node Google Dfp
A service for integrating with Google DFP over NodeJS
Stars: ✭ 84 (-16%)
Mutual labels:  api, google
Gotenberg Php Client
PHP client for the Gotenberg API
Stars: ✭ 80 (-20%)
Mutual labels:  api, markdown
Startup Matrix
Startup Matrix exported to CSV, JSON, Markdown and HTML formats. Credits to original article by Eric Stromberg.
Stars: ✭ 66 (-34%)
Mutual labels:  json, markdown
Api Client Generator
Angular REST API client generator from Swagger YAML or JSON file with camel case settigs
Stars: ✭ 92 (-8%)
Mutual labels:  api, json
Countries States Cities Database
🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities
Stars: ✭ 1,130 (+1030%)
Mutual labels:  api, json
Jokeapi
A REST API that serves uniformly and well formatted jokes in JSON, XML, YAML or plain text format that also offers a great variety of filtering methods
Stars: ✭ 71 (-29%)
Mutual labels:  api, json
Google Search
scrape google search results
Stars: ✭ 62 (-38%)
Mutual labels:  api, google
Sec Edgar Financials
Extract financial data from the SEC's EDGAR database
Stars: ✭ 73 (-27%)
Mutual labels:  api, json
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+8229%)
Mutual labels:  api, json
Sirvy
🔗 Kirby Services API
Stars: ✭ 59 (-41%)
Mutual labels:  api, json
Tortilla
Wrapping web APIs made easy.
Stars: ✭ 1,215 (+1115%)
Mutual labels:  api, json
Adoc
📄🖊轻松的的 API MD文档编写工具
Stars: ✭ 92 (-8%)
Mutual labels:  api, markdown

Parse Google Docs JSON

This Node.js module authenticates with Google API and parse Google Docs to human-readable JSON or Markdown without the need to use cumbersome methods like exporting it in HTML via Google Drive API and then parse it back to other formats.

Why

When you use Google Docs API V1, the body that comes with the documents.get method is completely fragmented. It's a JSON that you need to recursively parse to get the document into human-readable format. For my luck, there's a Gatsby plugin that internally has this implementation already: gatsby-source-google-docs. So I've extracted this implementation into this module and exposed it with a Service Authentication. For more information about this type of authentication, follow this tutorial: How to authenticate to any Google API

Warning

This module works like a charm, but it's for personal use, primarily. It will follow semantic version best practices, but will not have any automated tests in the short term.

How to use

const parseGoogleDocsJson = require("parse-google-docs-json");

async function start() {
  const parsed = await parseGoogleDocsJson({
    documentId: "1ymKw2OGcMfc02XdEEWdy22a_zUAlCxyN3P5Ab4c",
    clientEmail: "[email protected]",
    privateKey: "-----BEGIN PRIVATE KEY...",
  });

  console.log(parsed.toJson());
  console.log(parsed.toMarkdown());
}

start();

Environment variables

clientEmail = process.env.PARSE_GOOGLE_DOCS_CLIENT_EMAIL
privateKey = process.env.PARSE_GOOGLE_DOCS_PRIVATE_KEY
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].