From f1c42c2190eafbf043dc16e51bb956e0dba0e2b8 Mon Sep 17 00:00:00 2001 From: yvesf Date: Thu, 28 May 2009 14:27:47 +0000 Subject: add count git-svn-id: http://xapek.org/svn/common/omegle@1027 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- count.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 count.py (limited to 'count.py') diff --git a/count.py b/count.py new file mode 100644 index 0000000..e175f2c --- /dev/null +++ b/count.py @@ -0,0 +1,16 @@ +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() + -- cgit v1.2.1