Skip to content

Instantly share code, notes, and snippets.

@marcotchella
Created October 20, 2017 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcotchella/aeb54550cad3bb6713c828e5aa512102 to your computer and use it in GitHub Desktop.
Save marcotchella/aeb54550cad3bb6713c828e5aa512102 to your computer and use it in GitHub Desktop.
comunicação python com planilha google docs
import requests
from random import randint
import time
contador =0
while (contador < 10):
contador = contador + 1
valor = randint(0, 100)
r = requests.get("https://script.google.com/macros/s/==id planilha===/exec?temperatura="+str(valor))
time.sleep(1)
print r.headers['content-type']
print r.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment