Grabs the Quote and Author name from Google Sheets (which is linked with Google Forms) and prints the Quote in the Generated Image.
- Instagram/Twitter Quote Pages
- News/ Media Channels to generate sharable image from text content
- Fill the Google Forms
- Run the Python Code
- Image is generated with the Content (Google Forms)
$ sudo pip install -r requirements.txt
- Go to Google Developers Console
- Create a Project
- Go to API & Services
- Enable Google Drive & Google Sheets API
- Go to Credentials & Create Credentials (Select Service account key)
- Select Project-> Owner in Roles & Key type as json
- Save that document and replace that file, instead of 'quote-generator.json'
- In the 'Quote-Generator.py' change the file name accordingly
- Share your 'Google Sheets' to the Client email mentioned in the json file.
- Credentials file name
- Worksheet name
- Worksheet cell value (depends on your google sheets)
And finally run Quote-Generator.py
Here is a sample of how your google sheets should look like
And this is how your Generated Image will be
- You can change the background color and the font (Make sure that the new font is installed in your system)
- Don't share your client id/email or private key/key_id in Public