Created
October 20, 2017 17:07
-
-
Save marcotchella/aeb54550cad3bb6713c828e5aa512102 to your computer and use it in GitHub Desktop.
comunicação python com planilha google docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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