Giter Club home page Giter Club logo

google-sheets-crud's Introduction

google-sheets-crud

成品

以下两个为整理出来的 google sheets

VPS商家列表

机场列表

开发

获取 google sheets id

使用任意 google 账号在 https://docs.google.com/spreadsheets/u/0/ 创建一个表格

创建完表格后,查看地址栏,会看到如下地址,最长的那段文本就是 ID

https://docs.google.com/spreadsheets/d/1DsoedUDlmsdaDKMAK5sdaM_IInsdaonLOLsda51s/edit#gid=0

获取 google cloud sheets api 控制

首先,登录 https://cloud.google.com/

然后去启用 Sheets API alt text 搜索 Google Sheets alt text 启用 API alt text 创建一个服务账户,如果已存在服务账户也可以直接使用 alt text 创建服务账户,名称可以随意填写,之后点击 create 再点 Done 即可 alt text 点击创建完成的服务账户 alt text 创建服务账户的 key alt text 选择 JSON ,点击创建,完成后浏览器会自动下载一个json文件

将 google cloud 与 sheets 关联起来

进入刚刚创建的 sheets 表格,点击共享,分享给刚刚我们再 gcp 创建的服务账户,账户邮箱可以在我们刚下载的 json 文件中复制出来 alt text

使用

google sheets api 说明文档

  1. 将下载的 json 文件重命名为 service_account.json 并放到此项目根目录中
  2. 将根目录下的 config_example.json 重命名为 config.json ,并修改内部的 sheet_id 改为第一步获取的 sheet 表格 ID
  3. 现在你可以启动项目了

google-sheets-crud's People

Contributors

npcdw 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.