Giter VIP home page Giter VIP logo

gsheetsample's Introduction

gsheetsample

sample on how to use google sheet's api to write to an existing google sheet. parsexml.py will extract the name and value from the xml file and write it into a google sheet of your choosing (provided by your google sheet ID).

  1. Using command prompt/powershell or a terminal, navigate to this directory containing parsexml.py. Run the command pip install -r requirements.txt

  2. Follow steps 1 & 2 of https://developers.google.com/sheets/api/quickstart/python. You will download a credentials.json file which you need to place in the same directory as parsexml.py.

  3. Open parsexml.py and change the Spreadsheet ID in the line SPREADSHEET_ID = '1_9T4Wik9u6v7tBOORhurPPF4YLCjQMw03kvTdp3I1Gk' to your own google sheet's spreadsheet ID. Note that you must already have an existing google sheet created for this.

  4. Run python parsexml.py. You should be directed to a google login page to login. If this works you can skip step 4a

4a) You may need to run python parsexml.py --noauth_local_webserver instead, just follow the instructions shown in the console. Go to the link given to you, copy the verification code shown in the browser by visting the link and paste it back in the console.

  1. After that wait for the script to complete and check your google sheet again

gsheetsample's People

Contributors

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