>>> # using urllib2:
|
|
>>> import urllib2
|
|
>>> urllib2.urlopen("PING_URL")
|
|
|
|
>>> # using requests:
|
|
>>> import requests
|
|
>>> requests.get("PING_URL")
|