healthchecks/templates/front/snippets/python_urllib2.txt
2018-03-13 12:18:32 +02:00

8 lines
151 B
Plaintext

# urllib with python 3.x:
import urllib.request
urllib.request.urlopen("PING_URL")
# urllib with python 2.x:
import urllib
urllib.urlopen("PING_URL")