Save all Google presentation slides as images using python

Prerequisites


Step 1: Turn on the Google Slides API

Go to the link here: https://developers.google.com/slides/quickstart/python

In the "Step 1: Turn on the Google Slides API" section, Click the button to create a new Cloud Platform project and automatically enable the Google Slides API. 

In resulting dialog click DOWNLOAD CLIENT CONFIGURATION and save the file credentials.json to your working directory.

Step 2: Install the Google Client Library

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib


Image I have a google slide. See the link here: https://docs.google.com/presentation/d/1-aTBNXcSIqlMRzn-FHnRmRPbGlh5eY8MgZNaBwo15IM/edit?usp=sharing

"1-aTBNXcSIqlMRzn-FHnRmRPbGlh5eY8MgZNaBwo15IM" is the presentation ID. 


Python code:


Using the code above, you can export the slides to PNG images using Python. 

Reference

https://developers.google.com/slides/quickstart/python


Comments

Popular posts from this blog

gspread error:gspread.exceptions.SpreadsheetNotFound

Miniconda installation problem: concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

转载:彻底搞清楚promoter, exon, intron, and UTR