This is a small python script which runs a speedtest using speedtest.net and inserts it into a Google Docs Spreadsheet.


  1. Create a new Project in the Google Cloud Platform Console.

  2. Enable the Google Sheets API in the API Library.

Google Sheets API

  1. Go to Credentials and create a new OAuth 2.0 Client ID for Desktop Applications.

  2. Download the Credentials in the format of a json file.

Download Button.

  1. Rename the file to credentials.json.

  2. If you don’t want to use Docker, you can now just run main.py and you are good to go. Otherwise you need to run the app locally to generate a google login and need to mount the credentials.json and token.json into the docker container, see docker-compose.yml for an example. Also don’t forget to set your Google Sheet ID in the SPREADSHEET_ID environment variable. Also your sheet needs to be named Speedtest.