Advertisement
Guest User

Untitled

a guest
May 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. try:
  2.     import urequests as requests
  3. except ImportError:
  4.     import requests
  5.  
  6. import time
  7.  
  8. while True:
  9.  
  10.     r = requests.get("https://pederfjallstrom.com/flamingo.json")
  11.    
  12.     if r.content == "true":
  13.         print "yup"
  14.     else:
  15.         print "nope"
  16.     r.close()
  17.    
  18.     time.sleep(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement