Skip to content

Import lessons data from Google Sheet to JSON files

Notifications You must be signed in to change notification settings

magnum79/generate_lessons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generate_lessons

After cloning install dependecies using virtualenv:

ls -la /opt/python/*/bin/python
/opt/python/python-3.7.6/bin/python -m venv googleenv
source googleenv/bin/activate
pip install --upgrade pip && pip install -r requirements.txt --upgrade
deactivate

credentials.json

To run script generate credentials.json, as described in dependency docs

config.ini

Rename config.ini.example and specify your your_spreadsheet_id, sheet range and destination folder

# The ID and range of a spreadsheet.
SPREADSHEET_ID = your_spreadsheet_id
RANGE_NAME = 'Sheet1'!A1:F

# Destination folder
lesson_dir = /var/www/html/some_dir/

About

Import lessons data from Google Sheet to JSON files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages