This project demonstrates how to use the Google Sheets API to automate reading and writing data in a Google Sheet using Python.
git clone https://github.com/your-username/Google-Sheets-API.gitcd Google-Sheets-APIpip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlibSet the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path of your service account key:
set GOOGLE_APPLICATION_CREDENTIALS=path\to\your\service-account-file.jsonRun the Python script read.py to read data from your Google Sheet:
python read.pyRun the script to write data:
python write.py