import httplib import urllib headers = { "Host" : "omegle.com", "Content-type": "application/x-www-form-urlencoded; charset=utf-8", "Accept": "application/json" } conn = httplib.HTTPConnection('www.omegle.com') conn.request("GET", "/count", urllib.urlencode({}), headers) print conn.getresponse().read() conn.close()